# presentation/views/architecture.view.ts

> 50 lines of code and 4 definitions.

Tree: Site tree
Language: typescript
Layer: product
Canonical: https://banes-lab.com/anatomy/tree#file-presentation-views-architecture-view-ts
Source text: https://banes-lab.com/assets/sources/source.61ff29ac2d6e549cc3a4e192efc122fc52a1bec83cdd9472635d3ce63c8a413b.generated.txt

## Definitions

- `renderArchitecture` (lexical_declaration, line 35)
- `ARCHITECTURE_ENTITY` (lexical_declaration, line 17)
- `DEFINITION` (lexical_declaration, line 27)
- `PAGE` (lexical_declaration, line 41, exported)

## Uses

- [presentation/widgets/tab.widget.ts](https://banes-lab.com/source/tree/presentation/widgets/tab.widget.ts.md)

## Source

```typescript
import {
    ARCHITECTURE_DESCRIPTION,
    ARCHITECTURE_TITLE,
    CREATIVE_COMMONS_LICENSE,
} from "#configuration/strings/page.strings";
import { CREATIVE_COMMONS, SITE_URL, pagePath } from "#assets/link.assets";
import { mountTabSwitching, renderTabbedPage } from "#presentation/widgets/tab.widget";
import { ARCHITECTURE_META } from "#configuration/strings/architecture.strings";
import { ARCHITECTURE_PAGE } from "#core/ids/page.ids";
import { ARCHITECTURE_TABS } from "#configuration/strings/site.strings";
import { ARCHITECTURE_TONE } from "#configuration/constants/tab.constants";
import { METHODOLOGY_AUTHOR } from "#configuration/strings/methodology.strings";
import type { PageDefinition } from "#types/page.types";
import type { SchemaEntity } from "#types/schema.types";
import type { TabbedPage } from "#types/tab.types";

const ARCHITECTURE_ENTITY: SchemaEntity = {
    "@type": "CreativeWork",
    author: { "@type": "Person", name: METHODOLOGY_AUTHOR },
    description: ARCHITECTURE_DESCRIPTION,
    license: CREATIVE_COMMONS,
    name: ARCHITECTURE_META.title,
    url: SITE_URL + pagePath(ARCHITECTURE_PAGE),
    version: ARCHITECTURE_META.version,
};

const DEFINITION: TabbedPage = {
    layout: "chapter",
    meta: ARCHITECTURE_META,
    page: ARCHITECTURE_PAGE,
    tabs: ARCHITECTURE_TABS,
    tone: ARCHITECTURE_TONE,
};

const renderArchitecture = function renderArchitecture(): Element {
    return renderTabbedPage(DEFINITION);
};

void mountTabSwitching(DEFINITION);

export const PAGE: PageDefinition = {
    content: {
        kind: "tabbed",
        layout: DEFINITION.layout,
        meta: ARCHITECTURE_META,
        tabs: ARCHITECTURE_TABS,
        tone: DEFINITION.tone,
    },
    description: ARCHITECTURE_DESCRIPTION,
    entities: [ARCHITECTURE_ENTITY],
    id: ARCHITECTURE_PAGE,
    license: CREATIVE_COMMONS_LICENSE,
    render: renderArchitecture,
    title: ARCHITECTURE_TITLE,
};
```
