UNPKG

@drivy/cobalt

Version:

Opinionated design system for Drivy's projects.

22 lines (19 loc) 1.12 kB
import React from 'react'; import camelize from '../../utils/camelize.js'; import 'lodash.throttle'; import cx from 'classnames'; const iconSource = "mail"; const MailIcon = ({ color, size = 24, contained = false, className, }) => { const computedClassName = cx(className, `cobalt-Icon cobalt-Icon--${iconSource}`, { [`c-fill-${camelize(color || "")}`]: color, "cobalt-Icon--size16": size === 16, "cobalt-Icon--size20": size === 20, "cobalt-Icon--size32": size === 32, "cobalt-Icon--contained": contained, }); const wrap = (content) => (React.createElement("span", { className: computedClassName }, content)); return wrap(React.createElement("svg", { viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg" }, React.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M21.997 6.422A1.44 1.44 0 0 0 20.56 5H3.44A1.43 1.43 0 0 0 2 6.422v.27L11.999 12l9.998-5.309v-.27ZM22 17.58a1.43 1.43 0 0 1-1.438 1.422H3.438A1.44 1.44 0 0 1 2 17.58V8.74L12 14l10-5.26v8.84Z" }))); }; export { MailIcon as default }; //# sourceMappingURL=MailIcon.js.map