import { Inbox } from 'lucide-react'; import { PageSkeleton } from './PageSkeleton'; import { t } from '../i18n/t'; /** * `loadingVariant` names the shape of the page that is loading — see * PageSkeleton for the archetypes (table, feed, cards, detail, console, form, * chart, tree, split). It defaults to the generic `panel`, which is a safe * fallback but predicts nothing: prefer naming the real shape, so the skeleton * resolves into the content instead of being replaced by it. */ export default function EmptyState({ icon: Icon = Inbox, title = 'No items found', description = '', action = null, size = 'default', loading = false, loadingVariant = 'panel', loadingRows, }) { if (loading) { return (
); } return (

{title}

{description && (

{description}

)} {action && (
{action}
)}
); }