import { Box, Flex, Heading, Text } from '@radix-ui/themes' import type { GraphQLArgument } from 'graphql' import type { FC } from 'react' import { TypeAnnotation } from './TypeAnnotation.js' export interface Props { args: readonly GraphQLArgument[] } export const ArgumentsList: FC = ({ args }) => { if (args.length === 0) return null return ( Arguments {args.map(arg => ( {arg.name} : {arg.description && {arg.description}} ))} ) }