import { Show } from "solid-js"; import { Illustration } from "@/components/ui/illustration"; import { cn } from "@/lib/cn"; import type { IllustrationName } from "@/lib/illustrations"; export type EmptyStateKind = | "default" | "search" | "notes" | "exams" | "events" | "courses" | "messages" | "meals" | "homework" | "payments" | "people" | "schedule" | "whiteboard" | "work" | "coming-soon"; const KIND_ILLUSTRATION: Record = { default: "empty", search: "no-results", notes: "notes", exams: "exams", events: "events", courses: "courses", messages: "messages", meals: "meals", homework: "homework", payments: "payments", people: "people", schedule: "schedule", whiteboard: "whiteboard", work: "work", "coming-soon": "coming-soon", }; /** Empty panel with a theme-tinted illustration matching what is missing. */ export function EmptyState(props: { title: string; description?: string; kind?: EmptyStateKind; class?: string; }) { const kind = () => props.kind ?? "default"; return (

{props.title}

{props.description}

); }