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 portretPage from '../../content/shootPages/portret';
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/portret')({
head: () => pageHead('/soorten-fotoshoots/portret'),
component: PortretPage,
});
// The portret 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 PortretPage() {
const view = shootPageView('portret', portretPage, shootPageSources);
if (view === undefined) return ;
return (
<>
{shootPageGraph(view, siteContent).map((data) => (
))}
>
);
}