@drivy/cobalt
Version:
Opinionated design system for Drivy's projects.
35 lines (34 loc) • 1.57 kB
JavaScript
import { jsx, jsxs } from "react/jsx-runtime";
import classnames from "classnames";
import { camelize } from "../../utils/index.js";
const iconSource = "homeFilled";
const HomeFilledIcon = ({ 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: "M22.28 11.47C21.724 12.026 20.84 12.053 20.25 11.552V21C20.25 21.828 19.578 22.5 18.75 22.5H15.75V15.75C15.75 14.922 15.078 14.25 14.25 14.25H9.75C8.922 14.25 8.25 14.922 8.25 15.75V22.5H5.25C4.422 22.5 3.75 21.828 3.75 21V11.552C3.16 12.053 2.276 12.026 1.72 11.47L12 1.19z"
}),
/*#__PURE__*/ jsx("path", {
d: "M14.25 15.75V22.5H9.75V15.75z"
})
]
})
});
};
const _generated_HomeFilledIcon = HomeFilledIcon;
export default _generated_HomeFilledIcon;
//# sourceMappingURL=HomeFilledIcon.js.map