UNPKG

jobiqo-cl

Version:

[![CircleCI](https://circleci.com/gh/jobiqo/jobiqo-cl.svg?style=svg&circle-token=5a24efa5b8bbc4879276123e77d0d3f35ca7144c)](https://circleci.com/gh/jobiqo/jobiqo-cl)

31 lines (25 loc) 2 kB
'use strict'; 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 SvgGraduationCapIcon = (_a) => { var { title, theme = null } = _a, props = tslib_es6.__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 = tslib_es6.__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 = styled.withTheme(SvgGraduationCapStyle); exports.GraduationCapIcon = GraduationCapIcon;