UNPKG

polen

Version:

A framework for delightful GraphQL developer portals

11 lines 615 B
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime"; import { CRITICALITY_CONFIG } from '#lib/graphql-change/criticality'; import { Heading } from '@radix-ui/themes'; export const CriticalitySection = ({ level, changes, children }) => { if (changes.length === 0) { return null; } const config = CRITICALITY_CONFIG[level]; return (_jsxs("section", { children: [_jsx(Heading, { as: 'h3', size: '4', mb: '3', children: config.label }), _jsx("ul", { style: { listStyle: 'none', paddingLeft: 0, margin: 0 }, children: children })] })); }; //# sourceMappingURL=CriticalitySection.js.map