@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.
16 lines (14 loc) • 454 B
JavaScript
import * as React from "react";
import BadgePrimitive from "../../../primitives/BadgePrimitive";
import useTheme from "../../../hooks/useTheme";
const Badge = ({
children
}) => {
const theme = useTheme();
return /*#__PURE__*/React.createElement(BadgePrimitive, {
background: theme.orbit.paletteCloudLight,
foregroundColor: theme.orbit.paletteInkLight,
borderColor: theme.orbit.paletteCloudDark
}, children);
};
export default Badge;