import type { ReactNode } from 'react' export type ErrorBannerProps = { title?: string message: string hint?: ReactNode /** Shown via data-tip (hover/focus) */ detail?: string } /** * Inline error alert for reserved content areas. * Prefer toasts for ephemeral failures (zero CLS); use this when replacing expected content. */ export function ErrorBanner({ title, message, hint, detail }: ErrorBannerProps) { return (
{message}
{hint ?{hint}
: null}