'use client'; import type { ReactNode } from 'react'; /** * Lightbox zoom for one page or album (#467): inherit, on, or off. * * Three states rather than a switch, because `zoom: false` is a setting of its * own — it switches zoom off here while the site (or the page) has it on — * and a switch can only say true or absent. A select, like the layout * override beside it, with inheriting as the empty value, so the YAML keeps no * key until someone picks one. */ export default function ZoomOverrideField({ id, value, onChange, inheritLabel, hint, }: { id: string; value: boolean | undefined; onChange: (value: boolean | undefined) => void; inheritLabel: string; hint: ReactNode; }) { const current = value === true ? 'on' : value === false ? 'off' : ''; return (
{hint}
); }