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.52 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 SvgBriefcaseIcon = (_a) => { var { title, theme = null, titleId = '' } = _a, props = __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: "briefcase_svg__nc-icon-wrapper" }, React__default.createElement("path", { "data-color": "color-2", d: "M43 10h-2V5H23v5h-2V4a1 1 0 011-1h20a1 1 0 011 1v6zM39 46v3a1 1 0 01-1 1H26a1 1 0 01-1-1v-3H5v11a4 4 0 004 4h46a4 4 0 004-4V46H39z" }), React__default.createElement("path", { d: "M59 12H5a4 4 0 00-4 4v27a1 1 0 001 1h23v-3a1 1 0 011-1h12a1 1 0 011 1v3h23a1 1 0 001-1V16a4 4 0 00-4-4z" })))); }; const SvgBriefcaseStyle = (_a) => { var { color = 'currentColor', title } = _a, props = __rest(_a, ["color", "title"]); return (React__default.createElement(SvgBriefcaseIcon, Object.assign({ color: getFillColor(props.theme, color), fill: getFillColor(props.theme, color), title: title }, props))); }; const BriefcaseIcon = withTheme(SvgBriefcaseStyle); export { BriefcaseIcon };