jobiqo-cl
Version:
[](https://circleci.com/gh/jobiqo/jobiqo-cl)
21 lines (18 loc) • 1.21 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 SvgMoonIcon = (_a) => {
var { title, theme = null } = _a, props = __rest(_a, ["title", "theme"]);
return (React__default.createElement("svg", Object.assign({ viewBox: "0 0 32 32", width: "1em", height: "1em" }, props),
title ? React__default.createElement("title", null, title) : null,
React__default.createElement("path", { d: "M29.7 18.5c-1.2.3-2.3.5-3.5.5C18.9 19 13 13.1 13 5.8c0-1.1.2-2.3.5-3.5.1-.3 0-.7-.3-1-.2-.3-.6-.4-1-.3C5.6 2.8 1 8.9 1 15.7 1 24.2 7.8 31 16.3 31c6.9 0 12.9-4.6 14.7-11.2.1-.3 0-.7-.3-1s-.6-.4-1-.3z" })));
};
const SvgMoonStyle = (_a) => {
var { color = 'currentColor', title } = _a, props = __rest(_a, ["color", "title"]);
return (React__default.createElement(SvgMoonIcon, Object.assign({ color: getFillColor(props.theme, color), fill: getFillColor(props.theme, color), title: title }, props)));
};
const MoonIcon = withTheme(SvgMoonStyle);
export { MoonIcon };