jobiqo-cl
Version:
[](https://circleci.com/gh/jobiqo/jobiqo-cl)
24 lines (21 loc) • 1.59 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 SvgWeightIcon = (_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: "weight_svg__nc-icon-wrapper" },
React__default.createElement("path", { "data-color": "color-2", d: "M61.812 3.416A1 1 0 0061 3H3a1 1 0 00-.948 1.316C2.143 4.589 4.378 11 13 11h17v6h4v-6h17c8.622 0 10.857-6.411 10.948-6.684a1 1 0 00-.136-.9z" }),
React__default.createElement("path", { d: "M54 19H10a2 2 0 00-2 2v38a2 2 0 002 2h44a2 2 0 002-2V21a2 2 0 00-2-2zM32 55a15 15 0 1115-15 15 15 0 01-15 15z" }),
React__default.createElement("path", { "data-color": "color-2", d: "M29 40c0-1.657 3-11 3-11s3 9.343 3 11a3 3 0 01-6 0z" }))));
};
const SvgWeightStyle = (_a) => {
var { color = 'currentColor', title } = _a, props = __rest(_a, ["color", "title"]);
return (React__default.createElement(SvgWeightIcon, Object.assign({ color: getFillColor(props.theme, color), fill: getFillColor(props.theme, color), title: title }, props)));
};
const WeightIcon = withTheme(SvgWeightStyle);
export { WeightIcon };