@drivy/cobalt
Version:
Opinionated design system for Drivy's projects.
22 lines (19 loc) • 1.23 kB
JavaScript
import React from 'react';
import camelize from '../../utils/camelize.js';
import 'lodash.throttle';
import cx from 'classnames';
const iconSource = "geolocation";
const GeolocationIcon = ({ 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", { d: "M5.00159637,14.0050314 C3.96269709,14.0050314 3.61277575,12.6171023 4.52749654,12.1245603 L17.5274965,5.1245603 C18.4009599,4.6542339 19.3523939,5.6056679 18.8820675,6.47913122 L11.8820675,19.4791312 C11.3895255,20.393852 10.0015964,20.0439307 10.0015964,19.0050314 L10.0015965,14.0050316 L5.00159637,14.0050314 Z" })));
};
export { GeolocationIcon as default };
//# sourceMappingURL=GeolocationIcon.js.map