File size: 896 Bytes
6a7089a | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 | interface Props {
icon?: string;
title: string;
description?: string;
action?: React.ReactNode;
}
export default function EmptyState({
icon = "🦀",
title,
description,
action,
}: Props) {
return (
<div className="flex flex-col items-center justify-center py-16 text-center">
<div className="mb-3 flex h-[4.5rem] w-[4.5rem] items-center justify-center rounded-full border border-border-subtle bg-primary/[0.08] text-4xl shadow-[0_0_30px_rgb(var(--brand-accent-rgb)/0.08)]">
{icon}
</div>
<div className="dashboard-section-label mb-2">Dashboard</div>
<div className="text-lg font-semibold text-text-primary">{title}</div>
{description && (
<div className="mt-1 max-w-md text-sm leading-6 text-text-muted">
{description}
</div>
)}
{action && <div className="mt-4">{action}</div>}
</div>
);
}
|