import classNames from 'classnames'; import React from 'react'; import { useTranslation } from 'react-i18next'; interface HeaderCellProps { content: string | React.ReactElement; className?: string; } const HeaderCell = ({ content, className }: HeaderCellProps, idx: any) => { const { t } = useTranslation(); return (
{typeof content === 'string' ? t(content) : content}
); }; export default HeaderCell;