presentation/views/terms.view.ts

presentation/views/terms.view.ts is a file in Bane's Lab Site. 15 lines of code and 2 definitions.

import { TERMS_DESCRIPTION, TERMS_TITLE } from "#configuration/strings/page.strings";
import { TERMS_META, TERMS_SECTIONS } from "#configuration/strings/terms.strings";
import type { PageDefinition } from "#types/page.types";
import { TERMS_PAGE } from "#core/ids/page.ids";
import { renderDocument } from "#presentation/renderers/document.renderer";

const renderTerms = function renderTerms(): Element {
    return renderDocument(TERMS_META, TERMS_SECTIONS);
};

export const PAGE: PageDefinition = {
    content: { kind: "document", meta: TERMS_META, sections: TERMS_SECTIONS },
    description: TERMS_DESCRIPTION,
    id: TERMS_PAGE,
    render: renderTerms,
    title: TERMS_TITLE,
};