import type { FC } from 'react'; import { StyledProjectCard, StyledDivHeader, StyledBox, StyledCardTitle, StyledDivInfo, StyledProjectCardBody, StyledIconBox, StyledActions, } 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 { formatDateYMDHM } from 'utils/formatDate'; import { useLocationSettings } from 'hooks/useLocationSettings'; import { parseISO } from 'date-fns'; import { ConditionallyRender } from 'component/common/ConditionallyRender/ConditionallyRender'; 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'; import { Highlighter } from 'component/common/Highlighter/Highlighter'; import { useSearchHighlightContext } from 'component/common/Table/SearchHighlightContext/SearchHighlightContext'; import { TimeAgo } from 'component/common/TimeAgo/TimeAgo'; export type ProjectArchiveCardProps = { id: string; name: string; archivedAt?: string; onRevive: () => void; onDelete: () => void; mode?: string; owners?: ProjectSchemaOwners; }; export const ProjectArchiveCard: FC = ({ id, name, archivedAt, onRevive, onDelete, mode, owners, }) => { const { locationSettings } = useLocationSettings(); const { searchQuery } = useSearchHighlightContext(); return ( {name} ({ color: theme.palette.text.secondary, })} >

Archived:{' '}

} />

View archived flags

); };