jobiqo-cl
Version:
[](https://circleci.com/gh/jobiqo/jobiqo-cl)
29 lines (23 loc) • 1.92 kB
JavaScript
;
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 SvgTwitterIcon = (_a) => {
var { title, theme = null, titleId = '' } = _a, props = tslib_es6.__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: "M23.954 4.569a10 10 0 01-2.825.775 4.958 4.958 0 002.163-2.723c-.951.555-2.005.959-3.127 1.184a4.92 4.92 0 00-8.384 4.482C7.691 8.094 4.066 6.13 1.64 3.161a4.822 4.822 0 00-.666 2.475c0 1.71.87 3.213 2.188 4.096a4.904 4.904 0 01-2.228-.616v.061a4.923 4.923 0 003.946 4.827 4.996 4.996 0 01-2.212.085 4.937 4.937 0 004.604 3.417 9.868 9.868 0 01-6.102 2.105c-.39 0-.779-.023-1.17-.067a13.995 13.995 0 007.557 2.209c9.054 0 13.999-7.496 13.999-13.986 0-.209 0-.42-.015-.63a9.936 9.936 0 002.46-2.548l-.047-.02z" })));
};
const SvgTwitterStyle = (_a) => {
var { color = 'currentColor', title } = _a, props = tslib_es6.__rest(_a, ["color", "title"]);
return (React__default.createElement(SvgTwitterIcon, Object.assign({ color: getFillColor(props.theme, color), fill: getFillColor(props.theme, color), title: title }, props)));
};
const TwitterIcon = styled.withTheme(SvgTwitterStyle);
exports.TwitterIcon = TwitterIcon;