({ icon, title, description }: EmptyStateProps)
| 91 | } |
| 92 | |
| 93 | export function EmptyState({ icon, title, description }: EmptyStateProps) { |
| 94 | return ( |
| 95 | <div className="flex flex-col items-center justify-center py-16 text-center"> |
| 96 | <div className="w-12 h-12 rounded-xl bg-bg-secondary border border-border/60 flex items-center justify-center text-text-muted/30 mb-4"> |
| 97 | {icon ?? ( |
| 98 | <svg width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="1.5" strokeLinecap="round" strokeLinejoin="round"> |
| 99 | <rect x="3" y="3" width="18" height="18" rx="2" /> |
| 100 | <path d="M9 9h.01M15 9h.01M9 15h6" /> |
| 101 | </svg> |
| 102 | )} |
| 103 | </div> |
| 104 | <p className="text-sm font-medium text-text-muted">{title}</p> |
| 105 | {description && ( |
| 106 | <p className="text-[12px] text-text-muted/60 mt-1.5 max-w-[280px]">{description}</p> |
| 107 | )} |
| 108 | </div> |
| 109 | ) |
| 110 | } |
nothing calls this directly
no outgoing calls
no test coverage detected