1 import { useTranslation } from "react-i18next"
2 import { PlaceholderCell } from "../../common/placeholder-cell"
3
4 type DescriptionCellProps = {
5 description?: string | null
6 }
7
8 export const DescriptionCell = ({ description }: DescriptionCellProps) => {
9 if (!description) {
10 return <PlaceholderCell />
11 }
12
13 return (
14 <div className="flex h-full w-full items-center overflow-hidden">
15 <span className="truncate">{description}</span>
16 </div>
17 )
18 }
19
20 export const DescriptionHeader = () => {
21 const { t } = useTranslation()
22
23 return (
24 <div className="flex h-full w-full items-center">
25 <span className="truncate">{t("fields.description")}</span>
26 </div>
27 )
28 }