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