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)

32 lines (26 loc) 1.94 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 SvgPaymentIcon = (_a) => { var { title, theme = null } = _a, props = tslib_es6.__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: "payment_svg__nc-icon-wrapper" }, React__default.createElement("path", { d: "M10 36a1 1 0 100 2h14a1 1 0 100-2H10z" }), React__default.createElement("path", { d: "M58 4H6C3.243 4 1 6.243 1 9v36c0 2.757 2.243 5 5 5h25v-2H6c-1.654 0-3-1.346-3-3V27h58v10h2V9c0-2.757-2.243-5-5-5zm3 13H3V9c0-1.654 1.346-3 3-3h52c1.654 0 3 1.346 3 3v8z" }), React__default.createElement("path", { "data-color": "color-2", d: "M48 36c-6.627 0-12 5.373-12 12s5.373 12 12 12 12-5.373 12-12-5.373-12-12-12zm5 13h-4v4a1 1 0 01-2 0v-4h-4a1 1 0 010-2h4v-4a1 1 0 012 0v4h4a1 1 0 010 2z" })))); }; const SvgPaymentStyle = (_a) => { var { color = 'currentColor', title } = _a, props = tslib_es6.__rest(_a, ["color", "title"]); return (React__default.createElement(SvgPaymentIcon, Object.assign({ color: getFillColor(props.theme, color), fill: getFillColor(props.theme, color), title: title }, props))); }; const PaymentIcon = styled.withTheme(SvgPaymentStyle); exports.PaymentIcon = PaymentIcon;