import type { FC } from 'react'; import { StyledProjectCard, StyledDivHeader, StyledBox, StyledCardTitle, StyledDivInfo, StyledParagraphInfo, StyledProjectCardBody, StyledIconBox, StyledActions, } from './NewProjectCard.styles'; import { ProjectCardFooter } from './ProjectCardFooter/ProjectCardFooter'; import { ProjectModeBadge } from './ProjectModeBadge/ProjectModeBadge'; import type { ProjectSchemaOwners } from 'openapi'; import { ProjectIcon } from 'component/common/ProjectIcon/ProjectIcon'; import { formatDateYMDHM } from 'utils/formatDate'; import { useLocationSettings } from 'hooks/useLocationSettings'; import { parseISO } from 'date-fns'; import { ConditionallyRender } from 'component/common/ConditionallyRender/ConditionallyRender'; import TimeAgo from 'react-timeago'; import { Box, Link, Tooltip } from '@mui/material'; import { Link as RouterLink } from 'react-router-dom'; import { DELETE_PROJECT, UPDATE_PROJECT, } from 'component/providers/AccessProvider/permissions'; import Undo from '@mui/icons-material/Undo'; import PermissionIconButton from 'component/common/PermissionIconButton/PermissionIconButton'; import Delete from '@mui/icons-material/Delete'; export type ProjectArchiveCardProps = { id: string; name: string; archivedAt?: string; archivedFeaturesCount?: number; onRevive: () => void; onDelete: () => void; mode?: string; owners?: ProjectSchemaOwners; }; export const ProjectArchiveCard: FC = ({ id, name, archivedAt, archivedFeaturesCount, onRevive, onDelete, mode, owners, }) => { const { locationSettings } = useLocationSettings(); return ( {name} ({ color: theme.palette.text.secondary, })} > Archived

} /> {archivedFeaturesCount}

archived{' '} {archivedFeaturesCount === 1 ? 'flag' : 'flags'}

} />
); };