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 type { ProjectSchemaOwners } from 'openapi'; import { ProjectIcon } from 'component/common/ProjectIcon/ProjectIcon'; import { FavoriteAction } from './ProjectCardFooter/FavoriteAction/FavoriteAction'; interface IProjectCardProps { name: string; featureCount: number; health: number; memberCount?: number; id: string; onHover: () => void; favorite?: boolean; mode: string; owners?: ProjectSchemaOwners; } export const ProjectCard = ({ name, featureCount, health, memberCount = 0, onHover, id, mode, favorite = false, owners, }: IProjectCardProps) => ( {name}
{featureCount}

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

{memberCount}

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

} />
{health}%

healthy

);