jobiqo-cl
Version:
[](https://circleci.com/gh/jobiqo/jobiqo-cl)
30 lines (24 loc) • 1.63 kB
JavaScript
;
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 SvgExitIcon = (_a) => {
var { title, theme = null, titleId = '' } = _a, props = tslib_es6.__rest(_a, ["title", "theme", "titleId"]);
return (React__default.createElement("svg", Object.assign({ width: "1em", height: "1em", viewBox: "0 0 24 24", "aria-labelledby": titleId }, props),
title ? React__default.createElement("title", { id: titleId }, title) : null,
React__default.createElement("path", { d: "M0 0h24v24H0z", fill: "none" }),
React__default.createElement("path", { d: "M10.09 15.59L11.5 17l5-5-5-5-1.41 1.41L12.67 11H3v2h9.67l-2.58 2.59zM19 3H5a2 2 0 00-2 2v4h2V5h14v14H5v-4H3v4a2 2 0 002 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z" })));
};
const SvgExitStyle = (_a) => {
var { color = 'currentColor', title } = _a, props = tslib_es6.__rest(_a, ["color", "title"]);
return (React__default.createElement(SvgExitIcon, Object.assign({ color: getFillColor(props.theme, color), fill: getFillColor(props.theme, color), title: title }, props)));
};
const ExitIcon = styled.withTheme(SvgExitStyle);
exports.ExitIcon = ExitIcon;