@drivy/cobalt
Version:
Opinionated design system for Drivy's projects.
35 lines (34 loc) • 1.58 kB
JavaScript
import { jsx, jsxs } from "react/jsx-runtime";
import classnames from "classnames";
import { camelize } from "../../utils/index.js";
const iconSource = "externalLinkFilled";
const ExternalLinkFilledIcon = ({ 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: "M12.75 7.875H4.875V19.125H16.125V11.25H18V19.5L17.992 19.653C17.92 20.36 17.359 20.92 16.653 20.992L16.5 21H4.5C3.723 21 3.085 20.41 3.008 19.653L3 19.5V7.5C3 6.672 3.672 6 4.5 6H12.75z"
}),
/*#__PURE__*/ jsx("path", {
d: "M21.188 10.5H19.313V6.013L8.913 16.413 7.587 15.087 17.987 4.687H13.5V2.813H21.188z"
})
]
})
});
};
const _generated_ExternalLinkFilledIcon = ExternalLinkFilledIcon;
export default _generated_ExternalLinkFilledIcon;
//# sourceMappingURL=ExternalLinkFilledIcon.js.map