jobiqo-cl
Version:
[](https://circleci.com/gh/jobiqo/jobiqo-cl)
24 lines (21 loc) • 1.66 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 SvgChartIcon = (_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: "chart_svg__nc-icon-wrapper" },
React__default.createElement("path", { d: "M44.949 33C44.435 39.701 38.831 45 32 45c-3.395 0-6.479-1.318-8.797-3.457L9.988 53.803C15.609 59.478 23.4 63 32 63c16.758 0 30.444-13.369 30.975-30H44.949z" }),
React__default.createElement("path", { "data-color": "color-2", d: "M33 19.051c6.37.488 11.461 5.579 11.949 11.949h18.025C62.454 14.702 49.299 1.546 33 1.025v18.026z" }),
React__default.createElement("path", { d: "M21.837 40.084A12.928 12.928 0 0119 32c0-6.831 5.299-12.435 12-12.949V1.025C14.368 1.556 1 15.242 1 32c0 7.776 2.885 14.887 7.631 20.335l13.206-12.251z" }))));
};
const SvgChartStyle = (_a) => {
var { color = 'currentColor', title } = _a, props = __rest(_a, ["color", "title"]);
return (React__default.createElement(SvgChartIcon, Object.assign({ color: getFillColor(props.theme, color), fill: getFillColor(props.theme, color), title: title }, props)));
};
const ChartIcon = withTheme(SvgChartStyle);
export { ChartIcon };