import { CircleSlash2 } from 'lucide-react'; import type { ReactNode } from 'react'; import { t } from '@/i18n'; import { cn } from '@/lib/cn'; /** Explicit "No data" state — never a blank space. Optional list of the sources that were checked. */ export function EmptyState({ title, hint, sourcesChecked, action, className, compact }: { title?: ReactNode; hint?: ReactNode; sourcesChecked?: string[]; action?: ReactNode; className?: string; compact?: boolean }) { return (
{title ?? t('empty.generic')}
{hint ?{hint}
: null} {sourcesChecked && sourcesChecked.length ?{t('empty.sourcesChecked', { sources: sourcesChecked.join(', ') })}
: null} {action ?{t('common.notBuiltHint')}