UNPKG

jobiqo-cl

Version:

[![CircleCI](https://circleci.com/gh/jobiqo/jobiqo-cl.svg?style=svg&circle-token=5a24efa5b8bbc4879276123e77d0d3f35ca7144c)](https://circleci.com/gh/jobiqo/jobiqo-cl)

23 lines (20 loc) 1.4 kB
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 SvgJobPerFileIcon = (_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: "job_per_file_svg__nc-icon-wrapper" }, React__default.createElement("path", { "data-color": "color-2", d: "M45 1.586V13h11.414z" }), React__default.createElement("path", { d: "M44 15a1 1 0 01-1-1V1H9a2 2 0 00-2 2v58a2 2 0 002 2h46a2 2 0 002-2V15H44zm-4 18h-7v7a1 1 0 11-2 0v-7h-7a1 1 0 110-2h7v-7a1 1 0 112 0v7h7a1 1 0 110 2z" })))); }; const SvgJobPerFileStyle = (_a) => { var { color = 'currentColor', title } = _a, props = __rest(_a, ["color", "title"]); return (React__default.createElement(SvgJobPerFileIcon, Object.assign({ color: getFillColor(props.theme, color), fill: getFillColor(props.theme, color), title: title }, props))); }; const JobPerFileIcon = withTheme(SvgJobPerFileStyle); export { JobPerFileIcon };