import type { ReactNode } from 'react' import { Button } from './Button.tsx' import styles from './EmptyState.module.css' export type EmptyStateAction = { label: string onClick: () => void } export type EmptyStateProps = { title: string children: ReactNode // Optional primary action, rendered as a primary Button. action?: EmptyStateAction } // Bagel title, body text and an optional primary action. export function EmptyState({ title, children, action }: EmptyStateProps) { return (

{title}

{children}

{action && ( )}
) }