UNPKG

@drivy/cobalt

Version:

Opinionated design system for Drivy's projects.

32 lines (31 loc) 1.34 kB
import { jsx, jsxs } from "react/jsx-runtime"; import classnames from "classnames"; import { camelize } from "../../utils/index.js"; const iconSource = "reply"; const ReplyIcon = ({ 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: "M18.375 15.375C18.375 12.475 16.025 10.125 13.125 10.125H6.311L10.28 14.095 9.22 15.155 3.44 9.375 9.22 3.595 10.28 4.655 6.31 8.625H13.126C16.853 8.625 19.875 11.647 19.875 15.375V20.25H18.375z" }) ] }) }); }; const _generated_ReplyIcon = ReplyIcon; export default _generated_ReplyIcon; //# sourceMappingURL=ReplyIcon.js.map