import React, { VFC } from 'react'; import TimeAgo from 'react-timeago'; import { Tooltip, Typography } from '@mui/material'; import { formatDateYMD } from '../../../../../utils/formatDate'; import { TextCell } from '../TextCell/TextCell'; import { useLocationSettings } from '../../../../../hooks/useLocationSettings'; interface IFeatureArchivedCellProps { value?: string | Date | null; } export const FeatureArchivedCell: VFC = ({ value: archivedAt, }) => { const { locationSettings } = useLocationSettings(); if (!archivedAt) return ; return ( {archivedAt && ( )} ); };