import { LinkIconHeading } from 'components/article/LinkIconHeading' import type { GraphqlT } from './types' import { Notice } from './Notice' type Props = { item: GraphqlT heading?: string headingLevel?: number children?: React.ReactNode } export function GraphqlItem({ item, heading, children, headingLevel = 2 }: Props) { const lowerCaseName = item.name.toLowerCase() return (
{headingLevel === 2 && (

{item.name}

)} {headingLevel === 3 && (

{item.name}

)}
{item.preview && } {item.isDeprecated && }
{heading &&

{heading}

} {children}
) }