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.53 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 SvgStackImageIcon = (_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: "stack_image_svg__nc-icon-wrapper" }, React__default.createElement("path", { d: "M52 10H12V6a2 2 0 012-2h36a2 2 0 012 2z", "data-color": "color-2" }), React__default.createElement("path", { d: "M59 12H5a2 2 0 00-2 2v44a2 2 0 002 2h54a2 2 0 002-2V14a2 2 0 00-2-2zm-38 8a4 4 0 11-4 4 4 4 0 014-4zm31.87 29.493A1 1 0 0152 50H12a1 1 0 01-.832-1.555l8-12a1 1 0 011.539-.152l7.185 7.185L39.2 28.4a.973.973 0 01.852-.4 1 1 0 01.8.484l12 20a1 1 0 01.018 1.009z" })))); }; const SvgStackImageStyle = (_a) => { var { color = 'currentColor', title } = _a, props = __rest(_a, ["color", "title"]); return (React__default.createElement(SvgStackImageIcon, Object.assign({ color: getFillColor(props.theme, color), fill: getFillColor(props.theme, color), title: title }, props))); }; const StackImageIcon = withTheme(SvgStackImageStyle); export { StackImageIcon };