import { DEFAULT_PROJECT_ID } from 'hooks/api/getters/useDefaultProject/useDefaultProjectId'; import { ConditionallyRender } from 'component/common/ConditionallyRender/ConditionallyRender'; import { StyledProjectCard, StyledDivHeader, StyledBox, StyledCardTitle, StyledDivInfo, StyledParagraphInfo, 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 type { IProjectCard } from 'interfaces/project'; import { Box } from '@mui/material'; export const ProjectCard = ({ name, featureCount, health, memberCount = 0, onHover, id, mode, favorite = false, owners, }: IProjectCard) => ( {name}
{featureCount}

{featureCount === 1 ? 'flag' : 'flags'}

{memberCount}

{memberCount === 1 ? 'member' : 'members'}

} />
{health}%

healthy

({ margin: theme.spacing(1, 2, 0, 0) })}>
);