import { cn } from '@/lib/utils'; import { t } from 'i18next'; type EmptyProps = { className?: string; children?: React.ReactNode; }; const EmptyIcon = () => ( {t('common.noData')} ); const Empty = (props: EmptyProps) => { const { className, children } = props; return (
{!children && (
{t('common.noData')}
)} {children}
); }; export default Empty;