/** * InspectionNotice — the school page's inspection section when there is no * Ofsted inspection record (audit H4): the inspectorate GIAS names (ISI), or * Ofsted's own "not yet inspected" when its data lists the school. Nothing * otherwise: no claim the data cannot support. Server component. */ import type { School } from '@/lib/types'; import { Section, sectionStyles as styles } from './sectionShared'; const OFSTED_REPORTS = 'https://reports.ofsted.gov.uk/inspection-reports/find-inspection-report/provider/ELS/'; const ISI_REPORTS = 'https://www.isi.net/reports/'; export function InspectionNotice({ school }: { school: Pick }) { if (school.inspectorate === 'ISI') { return (

Inspection ISI reports ↗

Inspected by the Independent Schools Inspectorate (ISI)

); } if (school.ofsted_listed) { return (

Ofsted Rating Ofsted reports ↗

Not yet inspected
); } return null; }