import type { ReactNode } from 'react' import { leakBreakdown, leakSolutions, leakStages, revenueFormula, revenueMetrics, revenueResult, } from '../data/content' import { useReveal } from '../hooks/useReveal' import { cx } from '../lib/cx' import { CheckIcon, GrowthBarsIcon, PatientsIcon, RevenueBarsIcon, TrendUpIcon, WarningIcon, solutionIcons, } from './Icons' import { Container, Eyebrow, Section, SectionLead } from './Layout' export function LossEconomySection() { const head = useReveal() const loss = useReveal() const gain = useReveal() const closing = useReveal() return (
) } function PanelTitle({ tone, children }: { tone: 'light' | 'dark'; children: ReactNode }) { return (

svg]:size-[22px] [&>svg]:shrink-0 [&>svg]:text-teal tiny:text-[11px]', tone === 'dark' ? 'text-white' : 'text-navy', )} > {children}

) } /** The patient-base / surviving-revenue blocks on either side of the leak pipe. */ function FlowAnchor({ value, label, children }: { value: string; label: string; children: ReactNode }) { return (
{children} {value} {label}
) } /** One `× value` pair of the revenue formula — operator first, then the cell. */ function FormulaFragment({ operator, value, label, result = false, }: { operator?: string value: string label: string result?: boolean }) { return ( <> {operator ? ( ) : null}
{value} {label}
) } function ClosingItem({ icon, divider = false, children, }: { icon: ReactNode divider?: boolean children: ReactNode }) { return (
{icon}
{children}
) }