UNPKG

@drivy/cobalt

Version:

Opinionated design system for Drivy's projects.

22 lines (19 loc) 1.18 kB
import React from 'react'; import camelize from '../../utils/camelize.js'; import 'lodash.throttle'; import cx from 'classnames'; const iconSource = "accountDetails"; const AccountDetailsIcon = ({ 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: "M7.5 15c1.13 0 2.32.26 3.59.77 1.26.52 1.91 1.18 1.91 2V20H2v-2.23c0-.82.65-1.48 1.91-2C5.18 15.26 6.38 15 7.5 15Zm5.5-2h9v2h-9v-2Zm0-4h9v2h-9V9Zm0-4h9v2h-9V5ZM7.5 8a2.5 2.5 0 1 1 0 5 2.5 2.5 0 0 1 0-5Z" }))); }; export { AccountDetailsIcon as default }; //# sourceMappingURL=AccountDetailsIcon.js.map