import type { ReactNode } from "react"; import { Empty, EmptyContent, EmptyDescription, EmptyHeader, EmptyTitle, } from "~/components/ui/empty"; type EmptyListProps = { readonly title: string; readonly description: string; /** The list's create button, or a link to what must exist first; omitted when none applies. */ readonly action?: ReactNode; }; /** Renders a list page with no entries, in the dashed outline of an empty lane. */ export const EmptyList = ({ title, description, action }: EmptyListProps) => ( {title} {description} {action !== undefined && ( {action} )} );