// Mini Summary App Root // Purpose: Defines the Mini Summary App Root module and the local helpers/components used in this file. // Scope: Keeps behavior unchanged while isolating this concern into a clear, single-responsibility unit. import { useEffect } from 'react'; import AlertFeed from '../../components/AlertFeed/index.jsx'; import MiniSummaryContent from './MiniSummaryContent.jsx'; import { HARD_REFRESH_MS } from './constants.js'; export default function MiniSummaryAppRoot() { useEffect(() => { if (typeof window === 'undefined') return undefined; const timer = setTimeout(() => { const url = new URL(window.location.href); url.searchParams.set('refresh', Date.now().toString()); window.location.replace(url.toString()); }, HARD_REFRESH_MS); return () => clearTimeout(timer); }, []); return ( <> ); }