import { usePrefersReducedMotion } from '../../shared/hooks/usePrefersReducedMotion'; import { useTheme } from '../../theme/ThemeProvider'; /** * Pixel-dither overlay of the time-travel transition (BR-U1-6). Renders nothing while idle and * nothing at all under prefers-reduced-motion (BR-U1-9). */ export function TransitionOverlay() { const { transition } = useTheme(); const reducedMotion = usePrefersReducedMotion(); if (reducedMotion || transition.phase === 'idle') { return null; } return (
); }