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 { ProjectOwners } from './ProjectOwners/ProjectOwners'; 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 { CREATE_PROJECT, DELETE_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'; interface IProjectArchiveCardProps { id: string; name: string; createdAt?: string; archivedAt?: string; featureCount: number; onRevive: () => void; onDelete: () => void; mode: string; owners?: ProjectSchemaOwners; } export const ProjectArchiveCard: FC = ({ id, name, archivedAt, featureCount = 0, onRevive, onDelete, mode, owners, }) => { const { locationSettings } = useLocationSettings(); const Actions: FC<{ id: string; }> = ({ id }) => ( ); return ( {name} {featureCount}

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

({ color: theme.palette.text.secondary, })} > Archived

} />
); };