@kiwicom/orbit-components
Version:
Orbit-components is a React component library which provides developers with the easiest possible way of building Kiwi.com’s products.
15 lines (13 loc) • 483 B
JavaScript
import * as React from "react";
import BadgePrimitive from "../../../primitives/BadgePrimitive";
import useTheme from "../../../hooks/useTheme";
var Badge = function Badge(_ref) {
var children = _ref.children;
var theme = useTheme();
return /*#__PURE__*/React.createElement(BadgePrimitive, {
background: theme.orbit.paletteCloudLight,
foregroundColor: theme.orbit.paletteInkLight,
borderColor: theme.orbit.paletteCloudDark
}, children);
};
export default Badge;