UNPKG

polen

Version:

A framework for delightful GraphQL developer portals

9 lines 600 B
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime"; import { Box, Flex, Heading } from '@radix-ui/themes'; import { Link } from './Link.js'; export const TypeFieldsLinkList = ({ type }) => { return ((_jsxs(Box, { children: [_jsx(Heading, { children: type.name }), _jsx(Flex, { direction: 'column', children: Object.values(type.getFields()).map(field => { return ((_jsx(Box, { children: _jsx(Link, { to: `/reference/${type.name}/${field.name}`, children: field.name }) }, field.name))); }) })] }))); }; //# sourceMappingURL=TypeFieldsLinkList.js.map