/
githubmirror
/
angular
Обзор
Документация
Войти
/
githubmirror
/
angular
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
adev/shared-docs/pipeline/api-gen/rendering/templates/header-cli.tsx
36 строк
981 B
Matthieu Riegler
ci: reformat files
17 дек 2025, 01:44
17 дек 2025, 01:44
6270bba
Код
Авторство
О чём код?
/*! * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.dev/license */ import {h} from 'preact'; import {CliCommandRenderable} from '../entities/renderables.mjs'; import { HEADER_CLASS_NAME, HEADER_ENTRY_CATEGORY, HEADER_ENTRY_LABEL, HEADER_ENTRY_TITLE, } from '../styling/css-classes.mjs'; /** Component to render a header of the CLI page. */ export function HeaderCli(props: {command: CliCommandRenderable}) { const command = props.command; return ( <header className={HEADER_CLASS_NAME}> <span className={HEADER_ENTRY_CATEGORY}>CLI</span> <div className={HEADER_ENTRY_TITLE}> <div> <h1> {command.parentCommand?.name} {command.name} </h1> <div className={`${HEADER_ENTRY_LABEL} type-command full`}>{'Command'}</div> </div> </div> </header> ); }