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)

21 lines (18 loc) 1.33 kB
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 SvgPhoneIcon = (_a) => { var { title, theme = null, titleId = '' } = _a, props = __rest(_a, ["title", "theme", "titleId"]); return (React__default.createElement("svg", Object.assign({ viewBox: "0 0 24 24", width: "1em", height: "1em", "aria-labelledby": titleId }, props), title ? React__default.createElement("title", { id: titleId }, title) : null, React__default.createElement("path", { d: "M15.522 14.471l-2.334 2.3-5.959-5.959 2.3-2.334a1 1 0 00.206-1.095L7.34 1.793a1 1 0 00-1.175-.572l-4.4 1.162a1 1 0 00-.749 1A21.146 21.146 0 007 17a21.146 21.146 0 0013.621 5.983 1 1 0 001-.749l1.162-4.4a1 1 0 00-.572-1.175l-5.59-2.395a1 1 0 00-1.099.207z" }))); }; const SvgPhoneStyle = (_a) => { var { color = 'currentColor', title } = _a, props = __rest(_a, ["color", "title"]); return (React__default.createElement(SvgPhoneIcon, Object.assign({ color: getFillColor(props.theme, color), fill: getFillColor(props.theme, color), title: title }, props))); }; const PhoneIcon = withTheme(SvgPhoneStyle); export { PhoneIcon };