import { ConditionallyRender } from 'component/common/ConditionallyRender/ConditionallyRender'; import { StyledProjectCard, StyledDivHeader, StyledCardTitle, StyledProjectCardBody, StyledIconBox, } from './ProjectCard.styles'; import { ProjectCardFooter } from './ProjectCardFooter/ProjectCardFooter'; import { ProjectModeBadge } from './ProjectModeBadge/ProjectModeBadge'; import { ProjectIcon } from 'component/common/ProjectIcon/ProjectIcon'; import { FavoriteAction } from './FavoriteAction/FavoriteAction'; import { Box, styled } from '@mui/material'; import { flexColumn } from 'themes/themeStyles'; import { TimeAgo } from 'component/common/TimeAgo/TimeAgo'; import { ProjectLastSeen } from './ProjectLastSeen/ProjectLastSeen'; import type { IProjectCard } from 'interfaces/project'; const StyledUpdated = styled('span')(({ theme }) => ({ color: theme.palette.text.secondary, fontSize: theme.fontSizes.smallerBody, })); const StyledCount = styled('strong')(({ theme }) => ({ fontWeight: theme.typography.fontWeightMedium, })); const StyledInfo = styled('div')(({ theme }) => ({ display: 'flex', justifyContent: 'space-between', marginTop: theme.spacing(1), fontSize: theme.fontSizes.smallerBody, alignItems: 'flex-end', })); export const ProjectCard = ({ name, featureCount, health, memberCount = 0, onHover, id, mode, favorite = false, owners, lastUpdatedAt, lastReportedFlagUsage, }: IProjectCard) => ( ({ ...flexColumn, margin: theme.spacing(1, 'auto', 1, 0), })} > {name} Updated } />
{featureCount} flag {featureCount === 1 ? '' : 's'}
{health}% health
);