---
// Generic subsite navigation router — renders a per-subsite nav when available
// Props: whitelabel: object, subsite: { host, path, short }
const whitelabel = Astro.props?.whitelabel ?? null;
const subsite = Astro.props?.subsite ?? null;

import ReqSubNav from './subsites/reqNav.astro';
import DefaultSubNav from './subsites/defaultNav.astro';
---

{subsite?.short === 'req' ? <ReqSubNav whitelabel={whitelabel} /> : <DefaultSubNav whitelabel={whitelabel} />}
