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.7 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 SvgOfficeIcon = (_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: "office_svg__nc-icon-wrapper" }, React__default.createElement("path", { "data-color": "color-2", d: "M47 7H33V2a1 1 0 10-2 0v5H17a1 1 0 00-1 1v30h9c1.654 0 3 1.346 3 3v22h8V34c0-1.654 1.346-3 3-3h9V8a1 1 0 00-1-1zm-8 17H25a1 1 0 110-2h14a1 1 0 110 2zm0-7H25a1 1 0 110-2h14a1 1 0 110 2z" }), React__default.createElement("path", { d: "M61 33H39a1 1 0 00-1 1v28a1 1 0 001 1h22a1 1 0 001-1V34a1 1 0 00-1-1zm-7 23h-8a1 1 0 110-2h8a1 1 0 110 2zm0-7h-8a1 1 0 110-2h8a1 1 0 110 2zm0-7h-8a1 1 0 110-2h8a1 1 0 110 2zM25 40H3a1 1 0 00-1 1v21a1 1 0 001 1h22a1 1 0 001-1V41a1 1 0 00-1-1zm-7 16h-8a1 1 0 110-2h8a1 1 0 110 2zm0-7h-8a1 1 0 110-2h8a1 1 0 110 2z" })))); }; const SvgOfficeStyle = (_a) => { var { color = 'currentColor', title } = _a, props = __rest(_a, ["color", "title"]); return (React__default.createElement(SvgOfficeIcon, Object.assign({ color: getFillColor(props.theme, color), fill: getFillColor(props.theme, color), title: title }, props))); }; const OfficeIcon = withTheme(SvgOfficeStyle); export { OfficeIcon };