import { createFileRoute } from '@tanstack/react-router'; import NotFound from '../../components/StatusPage/NotFound'; import ShootPage from '../../components/shoots/ShootPage/ShootPage'; import StructuredData from '../../components/StructuredData/StructuredData'; import newbornPage from '../../content/shootPages/newborn'; import siteContent from '../../content/siteContent'; import { shootPageView } from '../../lib/shootPageView'; import { pageHead, shootPageGraph } from '../../seo'; import { shootPageSources } from './-shootPageSources'; export const Route = createFileRoute('/soorten-fotoshoots/newborn')({ head: () => pageHead('/soorten-fotoshoots/newborn'), component: NewbornPage, }); // The newborn page. The structured data lives here, not in head(): head() is // part of the main bundle, the component is split off, so the page texts // only load with this page. function NewbornPage() { const view = shootPageView('newborn', newbornPage, shootPageSources); if (view === undefined) return ; return ( <> {shootPageGraph(view, siteContent).map((data) => ( ))} ); }