@drivy/cobalt
Version:
Opinionated design system for Drivy's projects.
22 lines (19 loc) • 1.18 kB
JavaScript
import React from 'react';
import camelize from '../../utils/camelize.js';
import 'lodash.throttle';
import cx from 'classnames';
const iconSource = "meetDriver";
const MeetDriverIcon = ({ 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: "M20.5 4a2 2 0 1 1-4 0 2 2 0 0 1 4 0ZM9 10.41V22H5v-7H4V9a2 2 0 0 1 2-2h2c.27 0 .5.11.69.28l3.81 3.739 3.81-3.739c.19-.17.42-.28.69-.28h2a2 2 0 0 1 2 2v6h-1v7h-4V10.41L12.5 14 9 10.41ZM6.5 2a2 2 0 1 0 0 4 2 2 0 0 0 0-4Z" })));
};
export { MeetDriverIcon as default };
//# sourceMappingURL=MeetDriverIcon.js.map