polen
Version:
A framework for delightful GraphQL developer portals
12 lines • 639 B
JavaScript
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
import { Box, Heading, Text } from '@radix-ui/themes';
import {} from 'graphql';
import { FieldListSection } from './FieldListSection.js';
import { Markdown } from './Markdown.js';
export const NamedType = ({ data }) => {
const description = data.description
? (_jsx(Text, { as: 'div', color: 'gray', children: _jsx(Markdown, { children: data.description }) }))
: null;
return (_jsxs(Box, { children: [_jsx(Heading, { size: '8', children: data.name }), description, _jsx(FieldListSection, { data: data })] }));
};
//# sourceMappingURL=NamedType.js.map