15 lines
287 B
TypeScript
15 lines
287 B
TypeScript
import type { LucideIcon } from 'lucide-react'
|
|
|
|
interface EmptyStateProps {
|
|
icon: LucideIcon
|
|
text: string
|
|
}
|
|
|
|
export function EmptyState({ icon: Icon, text }: EmptyStateProps) {
|
|
return (
|
|
<div className="empty">
|
|
<Icon size={30} />
|
|
<span>{text}</span>
|
|
</div>
|
|
)
|
|
} |