<script>
    import ArticleHeader from "$lib/components/ArticleHeader.svelte";
    import { error } from "@sveltejs/kit";

    /** @type {import("./$types").PageData} */
    export let data;

    // hopefully this will get my attention
    if (!data.title) error(500, "there is no title dumbass");
    if (!data.description) error(500, "there is no description silly");
</script>

<article>
    <ArticleHeader />

    <svelte:component this={data.content} />
</article>
