import { utilityStyles } from "../styles/shared"; interface EmptyStateProps { /** Message to display when empty */ message: string; /** Optional hint/subtitle text */ hint?: string; /** Show loading state instead of empty message */ isLoading?: boolean; /** Optional action element (e.g., link or button) */ action?: React.ReactNode; /** Custom style override */ style?: React.CSSProperties; } /** * Standardized empty state component. * Displays a message when there's no data, or a loading state. */ export function EmptyState({ message, hint, isLoading, action, style }: EmptyStateProps) { if (isLoading) { return
{message}
{hint &&{hint}
} {action &&