import type { ButtonHTMLAttributes, InputHTMLAttributes, ReactNode } from 'react' import { useId } from 'react' export function Button({ variant = 'secondary', ...props }: ButtonHTMLAttributes & { variant?: 'primary' | 'secondary' }) { return } /** A text input that always has a visible label tied to it. */ export function TextField({ label, ...props }: InputHTMLAttributes & { label: string }) { const id = useId() return ( {label} ) } export function Alert(props: { title: string; children?: ReactNode }) { return ( {props.title} {props.children ? {props.children} : null} ) } /** Placeholder rows shown while data loads, announced to screen readers. */ export function LoadingRows(props: { label: string; rows?: number }) { return ( {props.label} {Array.from({ length: props.rows ?? 3 }, (_, index) => ( ))} ) } export function EmptyState(props: { children: ReactNode }) { return {props.children} }
{props.children}