mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
3bdead1b2f
Move the api-gen pipeline into the shared-docs directory. PR Close #57241
27 lines
792 B
TypeScript
27 lines
792 B
TypeScript
/*!
|
|
* @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 {ConstantEntryRenderable} from '../entities/renderables';
|
|
import {HeaderApi} from './header-api';
|
|
import {TabDescription} from './tab-description';
|
|
import {TabUsageNotes} from './tab-usage-notes';
|
|
import {TabApi} from './tab-api';
|
|
|
|
/** Component to render a constant API reference document. */
|
|
export function ConstantReference(entry: ConstantEntryRenderable) {
|
|
return (
|
|
<div class="api">
|
|
<HeaderApi entry={entry} />
|
|
<TabApi entry={entry} />
|
|
<TabDescription entry={entry} />
|
|
<TabUsageNotes entry={entry} />
|
|
</div>
|
|
);
|
|
}
|