mirror of
https://github.com/Redocly/redoc.git
synced 2025-11-03 17:27:31 +03:00
17 lines
549 B
TypeScript
17 lines
549 B
TypeScript
import * as React from 'react';
|
|
import { observer } from 'mobx-react';
|
|
|
|
import { RecursiveLabel, TypeName, TypeTitle } from '../../common-elements/fields';
|
|
import { l } from '../../services/Labels';
|
|
import type { SchemaProps } from '.';
|
|
|
|
export const RecursiveSchema = observer(({ schema }: SchemaProps) => {
|
|
return (
|
|
<div className="recursive-schema">
|
|
<TypeName>{schema.displayType}</TypeName>
|
|
{schema.title && <TypeTitle> {schema.title} </TypeTitle>}
|
|
<RecursiveLabel> {l('recursive')} </RecursiveLabel>
|
|
</div>
|
|
);
|
|
});
|