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