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)

22 lines (19 loc) 1.23 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 SvgMarkerIcon = (_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("path", { d: "M32 1C20.694 1 9 9.639 9 24.095 9 39.24 30.383 60.797 31.293 61.707a.997.997 0 001.414 0C33.617 60.797 55 39.24 55 24.095 55 9.639 43.306 1 32 1zm0 31a8 8 0 110-16 8 8 0 010 16z" }))); }; const SvgMarkerStyle = (_a) => { var { color = 'currentColor', title } = _a, props = __rest(_a, ["color", "title"]); return (React__default.createElement(SvgMarkerIcon, Object.assign({ color: getFillColor(props.theme, color), fill: getFillColor(props.theme, color), title: title }, props))); }; const MarkerIcon = withTheme(SvgMarkerStyle); export default MarkerIcon; export { MarkerIcon };