jobiqo-cl
Version:
[](https://circleci.com/gh/jobiqo/jobiqo-cl)
24 lines (21 loc) • 1.58 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 SvgPrintIcon = (_a) => {
var { title, theme = null } = _a, props = __rest(_a, ["title", "theme"]);
return (React__default.createElement("svg", Object.assign({ viewBox: "0 0 48 48", width: "1em", height: "1em" }, props),
title ? React__default.createElement("title", null, title) : null,
React__default.createElement("g", { className: "print_svg__nc-icon-wrapper" },
React__default.createElement("path", { "data-color": "color-2", d: "M38 10H10V3a1 1 0 011-1h26a1 1 0 011 1z" }),
React__default.createElement("path", { d: "M42 12H6a5 5 0 00-5 5v18a1 1 0 001 1h6V26a1 1 0 011-1h30a1 1 0 011 1v10h6a1 1 0 001-1V17a5 5 0 00-5-5zm-5.5 8a1.5 1.5 0 111.5-1.5 1.5 1.5 0 01-1.5 1.5z" }),
React__default.createElement("path", { "data-color": "color-2", d: "M10 27v18a1 1 0 001 1h26a1 1 0 001-1V27zm21 14H17a1 1 0 010-2h14a1 1 0 010 2zm0-7H17a1 1 0 010-2h14a1 1 0 010 2z" }))));
};
const SvgPrintStyle = (_a) => {
var { color = 'currentColor', title } = _a, props = __rest(_a, ["color", "title"]);
return (React__default.createElement(SvgPrintIcon, Object.assign({ color: getFillColor(props.theme, color), fill: getFillColor(props.theme, color), title: title }, props)));
};
const PrintIcon = withTheme(SvgPrintStyle);
export { PrintIcon };