import type { FlashMessages } from "@/lib/admin-feedback"; type AdminFlashProps = FlashMessages & { className?: string; }; /** * Inline feedback banner for admin pages. Renders a success and/or error * message inside the page (replacing the removed toast system). Purely * presentational — no client state, no data access. */ export function AdminFlash({ success, error, className }: AdminFlashProps) { if (!success && !error) { return null; } return (
{success ? (

{success}

) : null} {error ? (

{error}

) : null}
); }