UNPKG

@drivy/cobalt

Version:

Opinionated design system for Drivy's projects.

37 lines (36 loc) 1.61 kB
import { jsx, jsxs } from "react/jsx-runtime"; import classnames from "classnames"; import { camelize } from "../../utils/index.js"; const iconSource = "messages"; const MessagesIcon = ({ 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 12.75H6.75V11.25H12.75zM17.25 8.625H6.75V7.125H17.25z" }), /*#__PURE__*/ jsx("path", { fillRule: "evenodd", d: "M21 3C21.828 3 22.5 3.672 22.5 4.5V16.5C22.5 17.328 21.828 18 21 18H12.602L7.75 21.235C7.001 21.733 6 21.198 6 20.3V18H3C2.172 18 1.5 17.328 1.5 16.5V4.5C1.5 3.672 2.172 3 3 3zM3 16.5H7.5V19.598L12.148 16.5H21V4.5H3z", clipRule: "evenodd" }) ] }) }); }; const _generated_MessagesIcon = MessagesIcon; export default _generated_MessagesIcon; //# sourceMappingURL=MessagesIcon.js.map