UNPKG

jobiqo-cl

Version:

[![CircleCI](https://circleci.com/gh/jobiqo/jobiqo-cl.svg?style=svg&circle-token=5a24efa5b8bbc4879276123e77d0d3f35ca7144c)](https://circleci.com/gh/jobiqo/jobiqo-cl)

23 lines (20 loc) 1.67 kB
import { __rest } from '../../node_modules/tslib/tslib.es6.js'; import React__default from 'react'; import { withTheme } from 'styled-components'; const getFillColor = (theme, color) => { return theme && theme.colors[color] ? theme.colors[color] : color; }; const SvgMapMarkerIcon = (_a) => { var { title, theme = null } = _a, props = __rest(_a, ["title", "theme"]); return (React__default.createElement("svg", Object.assign({ viewBox: "0 0 64 64", width: "1em", height: "1em" }, props), title ? React__default.createElement("title", null, title) : null, React__default.createElement("g", { className: "map_marker_svg__nc-icon-wrapper" }, React__default.createElement("path", { d: "M61.713 5.042l-19.666 5.9-19.676-7.871a1.01 1.01 0 00-.658-.029l-20 6A1 1 0 001 10v48a1 1 0 001.287.958l19.666-5.9 16.676 6.67a1 1 0 00.742-1.858L23 51.323V5.477l18 7.2V25a1 1 0 002 0V12.744l18-5.4V28a1 1 0 002 0V6a1 1 0 00-1.287-.958zM21 51.256l-18 5.4V10.744l18-5.4z" }), React__default.createElement("path", { d: "M50 30c-6.391 0-13 4.746-13 12.688 0 7.565 11.818 18.581 12.321 19.046a1 1 0 001.358 0C51.182 61.269 63 50.253 63 42.688 63 34.746 56.391 30 50 30zm0 17a4 4 0 114-4 4 4 0 01-4 4z", "data-color": "color-2" })))); }; const SvgMapMarkerStyle = (_a) => { var { color = 'currentColor', title } = _a, props = __rest(_a, ["color", "title"]); return (React__default.createElement(SvgMapMarkerIcon, Object.assign({ color: getFillColor(props.theme, color), fill: getFillColor(props.theme, color), title: title }, props))); }; const MapMarkerIcon = withTheme(SvgMapMarkerStyle); export { MapMarkerIcon };