jobiqo-cl
Version:
[](https://circleci.com/gh/jobiqo/jobiqo-cl)
21 lines (18 loc) • 1.22 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 SvgStarIcon = (_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", { fill: "none", strokeMiterlimit: 10, d: "M32 5.37l8.652 17.532L60 25.714 46 39.36l3.305 19.27L32 49.532 14.695 58.63 18 39.36 4 25.714l19.348-2.812L32 5.37z", strokeLinecap: "square", strokeWidth: 2, stroke: "#333" })));
};
const SvgStarStyle = (_a) => {
var { color = 'currentColor', title } = _a, props = __rest(_a, ["color", "title"]);
return (React__default.createElement(SvgStarIcon, Object.assign({ color: getFillColor(props.theme, color), fill: getFillColor(props.theme, color), title: title }, props)));
};
const StarIcon = withTheme(SvgStarStyle);
export { StarIcon };