Spaces:
Sleeping
Sleeping
File size: 548 Bytes
f871fed |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 |
import { LucideIcon } from 'lucide-react'
interface EmptyStateProps {
icon: LucideIcon
title: string
description: string
action?: React.ReactNode
}
export function EmptyState({ icon: Icon, title, description, action }: EmptyStateProps) {
return (
<div className="text-center py-12">
<Icon className="h-12 w-12 mx-auto text-muted-foreground/60 mb-4" />
<h3 className="text-lg font-medium text-foreground mb-2">{title}</h3>
<p className="text-muted-foreground mb-4">{description}</p>
{action}
</div>
)
}
|