jobiqo-cl
Version:
[](https://circleci.com/gh/jobiqo/jobiqo-cl)
22 lines (19 loc) • 1.25 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 SvgArrowDownIcon = (_a) => {
var { title, theme = null, titleId = '' } = _a, props = __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: "M7.41 8.59L12 13.17l4.59-4.58L18 10l-6 6-6-6 1.41-1.41z" }),
React__default.createElement("path", { fill: "none", d: "M0 0h24v24H0V0z" })));
};
const SvgArrowDownStyle = (_a) => {
var { color = 'currentColor', title } = _a, props = __rest(_a, ["color", "title"]);
return (React__default.createElement(SvgArrowDownIcon, Object.assign({ color: getFillColor(props.theme, color), fill: getFillColor(props.theme, color), title: title }, props)));
};
const ArrowDownIcon = withTheme(SvgArrowDownStyle);
export { ArrowDownIcon };