import { useTranslation } from "react-i18next" import { PlaceholderCell } from "../placeholder-cell" type NameCellProps = { firstName?: string | null lastName?: string | null } export const NameCell = ({ firstName, lastName }: NameCellProps) => { if (!firstName && !lastName) { return } const name = [firstName, lastName].filter(Boolean).join(" ") return (
{name}
) } export const NameHeader = () => { const { t } = useTranslation() return (
{t("fields.name")}
) }