presentation/views/information.view.ts
presentation/views/information.view.ts is a file in Bane's Lab Site. 15 lines of code and 2 definitions.
import { INFORMATION_DESCRIPTION, INFORMATION_TITLE } from "#configuration/strings/page.strings";
import { INFORMATION_META, INFORMATION_SECTIONS } from "#configuration/strings/information.strings";
import { INFORMATION_PAGE } from "#core/ids/page.ids";
import type { PageDefinition } from "#types/page.types";
import { renderDocument } from "#presentation/renderers/document.renderer";
const renderInformation = function renderInformation(): Element {
return renderDocument(INFORMATION_META, INFORMATION_SECTIONS);
};
export const PAGE: PageDefinition = {
content: { kind: "document", meta: INFORMATION_META, sections: INFORMATION_SECTIONS },
description: INFORMATION_DESCRIPTION,
id: INFORMATION_PAGE,
render: renderInformation,
title: INFORMATION_TITLE,
};