mirror of
https://github.com/ManInDark/HabitTrove.git
synced 2026-01-21 06:34:30 +01:00
18 lines
519 B
TypeScript
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>
|
|
)
|
|
}
|