16 lines
514 B
TypeScript
16 lines
514 B
TypeScript
interface EmptyStateProps {
|
|
icon?: string;
|
|
title: string;
|
|
description?: string;
|
|
}
|
|
|
|
export function EmptyState({ icon = "--", title, description }: EmptyStateProps) {
|
|
return (
|
|
<div className="flex flex-col items-center justify-center py-8 text-center">
|
|
<span className="text-3xl mb-2 opacity-30">{icon}</span>
|
|
<p className="text-sm font-medium text-muted-foreground">{title}</p>
|
|
{description && <p className="text-xs text-muted-foreground/60 mt-1">{description}</p>}
|
|
</div>
|
|
);
|
|
}
|