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
Loading...
; } return (

{message}

{hint &&

{hint}

} {action &&
{action}
}
); } const styles: Record = { emptyText: { fontFamily: "'DM Sans', system-ui, sans-serif", color: "rgba(255, 255, 255, 0.6)", fontSize: "1rem", margin: 0, }, emptyHint: { fontFamily: "'DM Sans', system-ui, sans-serif", color: "rgba(255, 255, 255, 0.4)", fontSize: "0.85rem", marginTop: "0.5rem", }, action: { marginTop: "1rem", }, };