jobiqo-cl
Version:
[](https://circleci.com/gh/jobiqo/jobiqo-cl)
21 lines (18 loc) • 1.18 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 SvgHospitalIcon = (_a) => {
var { title, theme = null } = _a, props = __rest(_a, ["title", "theme"]);
return (React__default.createElement("svg", Object.assign({ viewBox: "0 0 32 32", width: "1em", height: "1em" }, props),
title ? React__default.createElement("title", null, title) : null,
React__default.createElement("path", { d: "M31 10h-9V1c0-.6-.4-1-1-1H11c-.6 0-1 .4-1 1v9H1c-.6 0-1 .4-1 1v10c0 .6.4 1 1 1h9v9c0 .6.4 1 1 1h10c.6 0 1-.4 1-1v-9h9c.6 0 1-.4 1-1V11c0-.6-.4-1-1-1z" })));
};
const SvgHospitalStyle = (_a) => {
var { color = 'currentColor', title } = _a, props = __rest(_a, ["color", "title"]);
return (React__default.createElement(SvgHospitalIcon, Object.assign({ color: getFillColor(props.theme, color), fill: getFillColor(props.theme, color), title: title }, props)));
};
const HospitalIcon = withTheme(SvgHospitalStyle);
export { HospitalIcon };