import type { ReactNode } from 'react'; import { Database } from 'lucide-react'; /** * "Data not yet available" block (CLAUDE.md §281-283, §337). Never a placeholder number. * `knows` lists what CancerIndex does know instead, so the block is informative rather than blank. */ export function EmptyState({ title = 'Data not yet available', children, knows, compact = false, }: { title?: string; children?: ReactNode; knows?: Array<{ label: string; href?: string }>; compact?: boolean; }) { return (

{title}

{children ?
{children}
: null} {knows && knows.length > 0 ? (
What CancerIndex knows
    {knows.map((k) => (
  • {k.href ? ( {k.label} ) : ( k.label )}
  • ))}
) : null}
); }