Files
HabitTrove/components/EmptyState.tsx
2024-12-30 13:57:28 -05:00

18 lines
519 B
TypeScript

import { LucideIcon } from 'lucide-react'
interface EmptyStateProps {
icon: LucideIcon
title: string
description: string
}
export default function EmptyState({ icon: Icon, title, description }: EmptyStateProps) {
return (
<div className="flex flex-col items-center justify-center p-8 text-center">
<Icon className="h-12 w-12 text-muted-foreground mb-4" />
<h3 className="text-lg font-semibold">{title}</h3>
<p className="text-sm text-muted-foreground">{description}</p>
</div>
)
}