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 ?
{action}
: null}
); } /** Calm full-width state for a 503 (snapshot not built yet) or unreachable API. */ export function NotBuiltState({ className }: { className?: string }) { return (
{t('site.name')}

{t('common.notBuilt')}

{t('common.notBuiltHint')}

); }