UNPKG

polen

Version:

A framework for delightful GraphQL developer portals

8 lines 438 B
import { jsx as _jsx } from "react/jsx-runtime"; import { Code } from '@radix-ui/themes'; import { typeKindTokensIndex, unknownTypeKindToken } from './type-kind-tokens.js'; export const TypeKindIcon = ({ kind }) => { const { symbol, color } = typeKindTokensIndex[kind] ?? unknownTypeKindToken; return _jsx(Code, { color: color, weight: 'bold', variant: 'outline', children: symbol }); }; //# sourceMappingURL=type-kind-icon.js.map