UNPKG

@drivy/cobalt

Version:

Opinionated design system for Drivy's projects.

32 lines (31 loc) 1.35 kB
import { jsx, jsxs } from "react/jsx-runtime"; import classnames from "classnames"; import { camelize } from "../../utils/index.js"; const iconSource = "location"; const LocationIcon = ({ 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: "M19.761 2.746C20.711 2.308 21.692 3.289 21.254 4.239L13.397 21.264C12.89 22.36 11.25 22 11.25 20.793V12.75H3.207C2.001 12.75 1.64 11.109 2.735 10.603zM4.915 11.25H12.75V19.085L19.465 4.534z" }) ] }) }); }; const _generated_LocationIcon = LocationIcon; export default _generated_LocationIcon; //# sourceMappingURL=LocationIcon.js.map