@drivy/cobalt
Version:
Opinionated design system for Drivy's projects.
37 lines (36 loc) • 1.8 kB
JavaScript
import { jsx, jsxs } from "react/jsx-runtime";
import classnames from "classnames";
import { camelize } from "../../utils/index.js";
const iconSource = "creditCardErrorFilled";
const CreditCardErrorFilledIcon = ({ color, size = 24, contained = false, className })=>{
const computedClassName = classnames(className, `cobalt-Icon cobalt-Icon--${iconSource}`, {
[`c-fill-${camelize(color || "")}`]: color,
"cobalt-Icon--size16": 16 === size,
"cobalt-Icon--size20": 20 === size,
"cobalt-Icon--size32": 32 === size,
"cobalt-Icon--contained": contained
});
return /*#__PURE__*/ jsx("span", {
className: computedClassName,
children: /*#__PURE__*/ jsxs("svg", {
xmlns: "http://www.w3.org/2000/svg",
viewBox: "0 0 24 24",
children: [
/*#__PURE__*/ jsx("title", {
children: iconSource
}),
/*#__PURE__*/ jsx("path", {
d: "M23.088 16.326 20.304 19.11 23.088 21.894 21.762 23.221 18.978 20.437 16.194 23.22 14.867 21.894 17.651 19.11 14.867 16.326 16.194 15 18.978 17.784 21.762 15z"
}),
/*#__PURE__*/ jsx("path", {
fillRule: "evenodd",
d: "M20.25 3.75C21.078 3.75 21.75 4.422 21.75 5.25V12.89L18.978 15.664 16.194 12.879 12.746 16.326 15.17 18.75H3.75L3.597 18.742C2.89 18.67 2.33 18.109 2.258 17.403L2.25 17.25V5.25C2.25 4.422 2.922 3.75 3.75 3.75zM3.75 8.25H20.25V5.25H3.75z",
clipRule: "evenodd"
})
]
})
});
};
const _generated_CreditCardErrorFilledIcon = CreditCardErrorFilledIcon;
export default _generated_CreditCardErrorFilledIcon;
//# sourceMappingURL=CreditCardErrorFilledIcon.js.map