import { Box, Heading, Text } from '@radix-ui/themes' import { type GraphQLNamedType } from 'graphql' import type { FC } from 'react' import { FieldListSection } from './FieldListSection.js' import { Markdown } from './Markdown.js' export interface Props { data: GraphQLNamedType } export const NamedType: FC = ({ data }) => { const description = data.description ? ( {data.description} ) : null return ( {data.name} {description} ) }