import type { ReactNode } from "react"; import type { LucideIcon } from "lucide-react"; import { cn } from "@/lib/utils"; /** * A block that explains why a view has nothing to show yet and what to do, * like "Samba is not installed" with an Install button. Unlike EmptyState the * action always shows. */ export function NoticePanel({ icon: Icon, title, children, action, tone = "default", className, }: { icon?: LucideIcon; title: ReactNode; children?: ReactNode; action?: ReactNode; tone?: "default" | "warning" | "destructive"; className?: string; }) { return (
{title}
{children && (