/** * EmptyState - улучшенный компонент для отображения пустого состояния * Добавлены: иллюстрации, улучшенные CTA, варианты размеров */ function EmptyState({ icon: Icon, title = 'Нет данных', description, action, secondaryAction, size = 'default', // 'small', 'default', 'large' illustration, // URL иллюстрации variant = 'default' // 'default', 'success', 'info', 'warning' }) { const sizeClasses = { small: 'empty-sm', default: '', large: 'empty-lg' } const variantColors = { default: 'text-muted', success: 'text-success', info: 'text-info', warning: 'text-warning' } return (
{illustration ? ( {title} ) : Icon ? ( ) : null}

{title}

{description && (

{description}

)} {(action || secondaryAction) && (
{action} {secondaryAction && ( {secondaryAction} )}
)}
) } export default EmptyState