({ item }: Props)
| 9 | } |
| 10 | |
| 11 | export 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 | } |
nothing calls this directly
no test coverage detected