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