jobiqo-cl
Version:
[](https://circleci.com/gh/jobiqo/jobiqo-cl)
21 lines (18 loc) • 1.33 kB
JavaScript
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 SvgHeartIcon = (_a) => {
var { title, theme = null, titleId = '' } = _a, props = __rest(_a, ["title", "theme", "titleId"]);
return (React__default.createElement("svg", Object.assign({ viewBox: "0 0 64 64", width: "1em", height: "1em", "aria-labelledby": titleId }, props),
title ? React__default.createElement("title", { id: titleId }, title) : null,
React__default.createElement("path", { d: "M44.693 5A15.027 15.027 0 0032 11.89 15.027 15.027 0 0019.307 5 15.337 15.337 0 004 20.455C4 35.817 32 59 32 59s28-23.183 28-38.545A15.337 15.337 0 0044.693 5z", fill: "none", strokeMiterlimit: 10, strokeLinecap: "square", strokeWidth: 2, stroke: "#333" })));
};
const SvgHeartStyle = (_a) => {
var { color = 'currentColor', title } = _a, props = __rest(_a, ["color", "title"]);
return (React__default.createElement(SvgHeartIcon, Object.assign({ color: getFillColor(props.theme, color), fill: getFillColor(props.theme, color), title: title }, props)));
};
const HeartIcon = withTheme(SvgHeartStyle);
export { HeartIcon };