--- import Layout from '@layouts/Layout.astro'; import ServiceCard from '@components/things/ServiceCard.astro'; import type { AwesomePrivacy, Section, Service } from '../types/Service'; import { fetchData, slugify } from '@utils/fetch-data'; import FontAwesome from '@components/form/FontAwesome.svelte'; const categories = (await fetchData() as AwesomePrivacy)?.categories || []; ---
{categories.map((category) => (

{category.name}

{category.sections.map((section: Section) => (

{section.name}

{ section.services.map((service: Service) => ( ))}
{!section || !section.services || section.services.length === 0 ? (

⚠️ This section is still a work in progress ⚠️
Check back soon, or help us complete it by submiting a pull request on GitHub.

) : null}
))}
))}