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) 1.71 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 SvgLockIcon = (_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: "lock_svg__nc-icon-wrapper" }, React__default.createElement("circle", { cx: 32, cy: 38, r: 2 }), React__default.createElement("path", { d: "M56.242 8.031l-24-6a.968.968 0 00-.484 0l-24 6A1 1 0 007 9v28a25 25 0 0050 0V9a1 1 0 00-.758-.969zM25 23a7 7 0 0114 0v5h-2v-5a5 5 0 00-10 0v5h-2zm18 22a1 1 0 01-1 1H22a1 1 0 01-1-1V31a1 1 0 011-1h20a1 1 0 011 1z" })))); }; const SvgLockStyle = (_a) => { var { color = 'currentColor', title } = _a, props = tslib_es6.__rest(_a, ["color", "title"]); return (React__default.createElement(SvgLockIcon, Object.assign({ color: getFillColor(props.theme, color), fill: getFillColor(props.theme, color), title: title }, props))); }; const LockIcon = styled.withTheme(SvgLockStyle); exports.LockIcon = LockIcon;