import * as React from "react"; import { cn } from "@/lib/utils"; import { Icons } from "@/components/shared/icons"; interface EmptyPlaceholderProps extends React.HTMLAttributes {} export function EmptyPlaceholder({ className, children, ...props }: EmptyPlaceholderProps) { return (
{children}
); } interface EmptyPlaceholderIconProps extends Partial> { name: keyof typeof Icons; ref?: | ((instance: SVGSVGElement | null) => void) | React.RefObject | null; } EmptyPlaceholder.Icon = function EmptyPlaceholderIcon({ name, className, ...props }: EmptyPlaceholderIconProps) { const Icon = Icons[name]; if (!Icon) { return null; } return (
); }; interface EmptyPlaceholderTitleProps extends React.HTMLAttributes {} EmptyPlaceholder.Title = function EmptyPlaceholderTitle({ className, ...props }: EmptyPlaceholderTitleProps) { return (

); }; interface EmptyPlaceholderDescriptionProps extends React.HTMLAttributes {} EmptyPlaceholder.Description = function EmptyPlaceholderDescription({ className, ...props }: EmptyPlaceholderDescriptionProps) { return (

); };