import * as React from 'react'; import { Paragraph, useTranslations } from '@shoptet/ui-core-web'; import { isTruthyNativeHtmlStructure } from '../../../utils/isTruthyNativeHtmlStructure'; import { getTypographyProps } from '../../Typography/getTypographyProps'; import { TableCellEmpty } from '../TableCell/TableCellEmpty'; import { TableRow } from '../TableRow/TableRow'; import { dictionary } from './dictionary'; type TableBodyEmptyProps = React.PropsWithChildren<{ colspan: number; }>; export const TableBodyEmpty: React.FC = ({ children, colspan, ...rest }) => { rest satisfies Record; const translations = useTranslations(dictionary); return ( {children ? ( isTruthyNativeHtmlStructure(children) ? ( {children} ) : ( children ) ) : ( {translations.noEntriesFound} )} ); };