import { Box, Flex, Heading } from '@radix-ui/themes' import type { GraphQLInterfaceType, GraphQLObjectType } from 'graphql' import type { FC } from 'react' import { Link } from './Link.js' export interface Props { type: GraphQLObjectType | GraphQLInterfaceType } export const TypeFieldsLinkList: FC = ({ type }) => { return ( ( {type.name} {Object.values(type.getFields()).map(field => { return ( ( {field.name} ) ) })} ) ) }