import type { ReactNode } from 'react' const CHART_GRADIENT = 'radial-gradient(circle at center -150%, hsl(var(--brand-300)), transparent 80%), radial-gradient(ellipse at center 230%, var(--background-surface-200), transparent 75%)' /** Shared frame for every survey chart: gradient container + Q&A/eyebrow header. * When `isEmpty` is set (no data for the active year), renders the * "added in 2026" placeholder instead of the chart body. */ export function SurveyChartShell({ eyebrow, title, note, isEmpty = false, emptyNoun = 'question', children, }: { eyebrow?: string title: string /** Smaller parenthetical under the title clarifying how the question was asked. */ note?: string isEmpty?: boolean emptyNoun?: string children: ReactNode }) { return (
{eyebrow}
)}This {emptyNoun} was added to the 2026 survey.
Switch the year to 2026 to view results.