import { cn } from "~/utils/cn"; import { Icon, type IconName } from "~/ui/Icon"; const SIZES = { inline: { wrap: "px-6 py-12", tile: "size-11", icon: "size-5", title: "text-base" }, page: { wrap: "px-6 py-20 md:py-28", tile: "size-14", icon: "size-6", title: "text-xl" }, } as const; type Props = { title: string; icon?: IconName; /** `page` for a whole-page empty state, `inline` (default) inside panels. */ size?: keyof typeof SIZES; /** Buttons or links that get the person unstuck. */ action?: React.ReactNode; className?: string; children?: React.ReactNode; }; export function EmptyState({ title, icon = "inbox", size = "inline", action, className, children }: Props) { const sizing = SIZES[size]; return (