UNPKG

@drivy/cobalt

Version:

Opinionated design system for Drivy's projects.

22 lines (19 loc) 1.27 kB
import React from 'react'; import camelize from '../../utils/camelize.js'; import 'lodash.throttle'; import cx from 'classnames'; const iconSource = "contextualWarningCircleFilled"; const ContextualWarningCircleFilledIcon = ({ color, size = 24, contained = false, className, }) => { const computedClassName = cx(className, `cobalt-Icon cobalt-Icon--${iconSource}`, { [`c-fill-${camelize(color || "")}`]: color, "cobalt-Icon--size16": size === 16, "cobalt-Icon--size20": size === 20, "cobalt-Icon--size32": size === 32, "cobalt-Icon--contained": contained, }); const wrap = (content) => (React.createElement("span", { className: computedClassName }, content)); return wrap(React.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24" }, React.createElement("path", { d: "m12 22c-5.523 0-10-4.477-10-10s4.477-10 10-10 10 4.477 10 10-4.477 10-10 10zm-1.495-15.503.62 7.428a.88.88 0 0 0 .856.795h.038c.432 0 .821-.356.858-.795l.619-7.428a1.36 1.36 0 0 0 -1.382-1.497h-.227c-.835 0-1.45.67-1.382 1.497zm1.495 12.503a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3z" }))); }; export { ContextualWarningCircleFilledIcon as default }; //# sourceMappingURL=ContextualWarningCircleFilledIcon.js.map