import type { PageLoad } from './$types';
import type { PageMeta } from '$lib/seo';
import { baseJsonLdGraph } from '$lib/data/json-ld/baseJsonLdGraphs';
import { pageContent } from '$lib/data/services/landing/content';
import { servicesPageJsonLdGraph } from '$lib/data/json-ld/webpageJsonLdGraphs';
import { catalogJsonLdGraph } from '$lib/data/json-ld/baseJsonLdGraphs';

const BASE = 'https://mifi.ventures';
const PATH = '/services';
const PAGE_URL = `${BASE}${PATH}`;

export const load: PageLoad = () => {
    const { meta } = pageContent;
    const servicePageMeta: PageMeta = {
        title: meta.title,
        description: meta.description,
        canonical: PAGE_URL,
        jsonLd: [...baseJsonLdGraph, ...catalogJsonLdGraph, servicesPageJsonLdGraph],
    };
    return { meta: servicePageMeta };
};
