import { Button } from './Button.js'; export interface EmptyStateProps { /** One dim sentence. Say what this surface can answer, not "No data". */ message: string; /** Two or three real questions. Clicking one runs it — examples are affordances. */ examples?: string[]; onExample?: (example: string) => void; actionLabel?: string; onAction?: () => void; className?: string; } export function EmptyState({ message, examples, onExample, actionLabel, onAction, className, }: EmptyStateProps) { return (
{message}
{examples !== undefined && examples.length > 0 && (