/** Device-local, reversible camera experiment. Photos and optical settings are untouched. */ export type CameraComposition = 'wall' | 'legacy'; const KEY = 'behind-glass-camera-composition-v32'; export function readCameraComposition(storage?:Pick):CameraComposition { try {return storage?.getItem(KEY)==='legacy'?'legacy':'wall';} catch {return 'wall';} } export function saveCameraComposition(storage:Pick|undefined,mode:CameraComposition):boolean { try {if(!storage)return false;storage.setItem(KEY,mode);return true;} catch {return false;} }