'use client'; import { useState, type ReactNode } from 'react'; import styles from './schoolSections.module.css'; /** * The only interactive part of the primary admissions section, and the only * client component in components/school/. * * Both views are always present in the DOM and visibility is toggled with the * `hidden` attribute — matching the previous behaviour exactly — so the * server-rendered markup passed in as yearView/trendView never ships as client * JavaScript. * * It spans the header and the viewport because the segmented control sits * inside .admissionsHeader beside the