jobiqo-cl
Version:
[](https://circleci.com/gh/jobiqo/jobiqo-cl)
21 lines (18 loc) • 1.09 kB
JavaScript
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 SvgBackIcon = (_a) => {
var { title, theme = null } = _a, props = __rest(_a, ["title", "theme"]);
return (React__default.createElement("svg", Object.assign({ width: "1em", height: "1em", viewBox: "0 0 36 36" }, props),
title ? React__default.createElement("title", null, title) : null,
React__default.createElement("path", { d: "M30 16.5H11.74l8.38-8.38L18 6 6 18l12 12 2.12-2.12-8.38-8.38H30v-3z", fill: "#999" })));
};
const SvgBackStyle = (_a) => {
var { color = 'currentColor', title } = _a, props = __rest(_a, ["color", "title"]);
return (React__default.createElement(SvgBackIcon, Object.assign({ color: getFillColor(props.theme, color), fill: getFillColor(props.theme, color), title: title }, props)));
};
const BackIcon = withTheme(SvgBackStyle);
export { BackIcon };