UNPKG

@veecode-platform/plugin-kong-service-manager

Version:

24 lines (21 loc) 804 B
import React from 'react'; import { themeVariables } from '../../../utils/constants/theme.esm.js'; import { Chip } from '@material-ui/core'; const MethodLabel = (props) => { const { variant } = props; const lowerMethod = variant.toLowerCase(); const backgroundColor = lowerMethod in themeVariables.methods.background ? themeVariables.methods.background[lowerMethod] : themeVariables.background.secondary; const textColor = lowerMethod in themeVariables.methods.colors ? themeVariables.methods.colors[lowerMethod] : themeVariables.colors.dark; return /* @__PURE__ */ React.createElement( Chip, { style: { background: backgroundColor, color: textColor }, label: variant } ); }; export { MethodLabel }; //# sourceMappingURL=MethodLabel.esm.js.map