diff --git a/app/routes/missions.km3net.mdx b/app/routes/missions.km3net.mdx new file mode 100644 index 000000000..02f8a0a0f --- /dev/null +++ b/app/routes/missions.km3net.mdx @@ -0,0 +1,13 @@ +--- +handle: + breadcrumb: KM3Net +--- + +import { feature } from '~/lib/env.server' + +export async function loader() { + if (!feature('KM3NET_QUICKSTART')) throw new Response(null, { status: 404 }) + return null +} + +# KM3NeT diff --git a/app/routes/missions.tsx b/app/routes/missions.tsx index f645b3600..8b609fa88 100644 --- a/app/routes/missions.tsx +++ b/app/routes/missions.tsx @@ -9,6 +9,7 @@ import { NavLink, Outlet } from '@remix-run/react' import { GridContainer } from '@trussworks/react-uswds' import { SideNav } from '~/components/SideNav' +import { useFeature } from '~/root' import type { BreadcrumbHandle } from '~/root/Title' export const handle: BreadcrumbHandle = { breadcrumb: 'Missions' } @@ -50,6 +51,11 @@ export default function () { INTEGRAL , + useFeature('KM3NET_QUICKSTART') && ( + + KM3NeT + + ), Konus-Wind ,