import React from 'react'; import { Stack } from '../Stack/Stack'; import { Center } from '../Center/Center'; import { Text } from '../Text/Text'; import { Icon } from '../Icon/Icon'; import { useTheme } from '../../core'; interface EmptyStateProps { icon?: React.ElementType; title: string; description: string; action?: React.ReactNode; } export const EmptyState: React.FC = ({ icon, title, description, action }) => { const { theme } = useTheme(); return (
{icon && } {title} {description} {action}
); };