// Medway MSS — Navigation + Hero function Nav({ active, onNav, accent, lang, setLang }) { const { t } = useI18n.cached || { t: (k) => k }; // We read t from props-less hook context — but components don't share React context here. // Simpler: accept t via prop. return null; } function NavReal({ active, onNav, accent, lang, setLang, t }) { const [scrolled, setScrolled] = React.useState(false); const isMobile = useIsMobile(); React.useEffect(() => { const onScroll = () => setScrolled(window.scrollY > 8); window.addEventListener('scroll', onScroll); return () => window.removeEventListener('scroll', onScroll); }, []); const items = [ { id: 'home', label: t('nav.home') }, { id: 'about', label: t('nav.about') }, { id: 'products', label: t('nav.products'), href: '/catalogue' }, { id: 'industries', label: t('nav.industries') }, { id: 'contact', label: t('nav.contact') }, ]; return ( ); } function Hero({ accent, onNav, t }) { const isMobile = useIsMobile(); return (
{/* Brand-color soft wash on the right */}
{t('hero.eyebrow')}
{t('hero.compliance')}

{t('hero.title.1')}
{t('hero.title.2')} {t('hero.title.accent')} {t('hero.title.3')}

{t('hero.subhead')}

{t('hero.cta.primary')}
{[1, 2, 3, 4].map((n, i) => (
{t(`hero.stats.${n}.k`)}
{t(`hero.stats.${n}.l`)}
))}
{t('hero.serving')}
{[1, 2, 3, 4, 5].map((n) => (
{t(`hero.serving.${n}`)}
))}
); } Object.assign(window, { Nav: NavReal, Hero });