csa-dashboard-sementara/csa-dashboard/components/empty-state.tsx

23 lines
762 B
TypeScript

import { FileQuestion } from "lucide-react";
interface EmptyStateProps {
title: string;
description?: string;
action?: React.ReactNode;
}
export function EmptyState({ title, description, action }: EmptyStateProps) {
return (
<div className="flex flex-col items-center justify-center rounded-lg border border-dashed p-12 text-center">
<FileQuestion className="h-12 w-12 text-muted-foreground mb-4" />
<h3 className="text-lg font-semibold">{title}</h3>
{description && (
<p className="text-sm text-muted-foreground mt-2 max-w-sm">
{description}
</p>
)}
{action && <div className="mt-4">{action}</div>}
</div>
);
}