MCPcopy Create free account
hub / github.com/github/docs / Enum

Function Enum

components/graphql/Enum.tsx:11–31  ·  view source on GitHub ↗
({ item }: Props)

Source from the content-addressed store, hash-verified

9}
10
11export function Enum({ item }: Props) {
12 const { t } = useTranslation('products')
13 const heading = t('graphql.reference.values')
14
15 return (
16 <GraphqlItem item={item} heading={heading}>
17 {item.values.map((value) => (
18 <React.Fragment key={`${value.name}-${value.description}`}>
19 <p>
20 <strong>{value.name}</strong>
21 </p>
22 <div
23 dangerouslySetInnerHTML={{
24 __html: value.description,
25 }}
26 />
27 </React.Fragment>
28 ))}
29 </GraphqlItem>
30 )
31}

Callers

nothing calls this directly

Calls 1

useTranslationFunction · 0.90

Tested by

no test coverage detected