jobiqo-cl
Version:
[](https://circleci.com/gh/jobiqo/jobiqo-cl)
23 lines (20 loc) • 1.68 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 SvgGraduationCapIcon = (_a) => {
var { title, theme = null } = _a, props = __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: "graduation_cap_svg__nc-icon-wrapper" },
React__default.createElement("path", { d: "M62.423 17.094l-30-14a1.001 1.001 0 00-.846 0l-30 14a.999.999 0 000 1.812l30 14a.992.992 0 00.846 0L43 27.97v25.71l-4.814 6.739A1 1 0 0039 62h10a.999.999 0 00.814-1.581L45 53.68V27.037l17.423-8.131a.999.999 0 000-1.812z" }),
React__default.createElement("path", { "data-color": "color-2", d: "M41 31.111l-7.731 3.608c-.394.183-.833.281-1.269.281s-.875-.098-1.27-.281L11 25.511V42c0 5.607 9.224 10 21 10 3.244 0 6.283-.343 9-.944V31.111zM47 28.311v20.748c3.726-1.796 6-4.277 6-7.059V25.51l-6 2.801z" }))));
};
const SvgGraduationCapStyle = (_a) => {
var { color = 'currentColor', title } = _a, props = __rest(_a, ["color", "title"]);
return (React__default.createElement(SvgGraduationCapIcon, Object.assign({ color: getFillColor(props.theme, color), fill: getFillColor(props.theme, color), title: title }, props)));
};
const GraduationCapIcon = withTheme(SvgGraduationCapStyle);
export { GraduationCapIcon };