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)

31 lines (25 loc) 1.78 kB
'use strict'; Object.defineProperty(exports, '__esModule', { value: true }); function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; } var tslib_es6 = require('../../node_modules/tslib/tslib.es6.js'); var React = require('react'); var React__default = _interopDefault(React); var styled = require('styled-components'); var styled__default = _interopDefault(styled); const getFillColor = (theme, color) => { return theme && theme.colors[color] ? theme.colors[color] : color; }; const SvgJobPerFileIcon = (_a) => { var { title, theme = null, titleId = '' } = _a, props = tslib_es6.__rest(_a, ["title", "theme", "titleId"]); return (React__default.createElement("svg", Object.assign({ viewBox: "0 0 64 64", width: "1em", height: "1em", "aria-labelledby": titleId }, props), title ? React__default.createElement("title", { id: titleId }, 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 = tslib_es6.__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 = styled.withTheme(SvgJobPerFileStyle); exports.JobPerFileIcon = JobPerFileIcon;