UNPKG

@retailmenot/anchor

Version:

A React UI Library by RetailMeNot

25 lines 1.87 kB
var __rest = (this && this.__rest) || function (s, e) { var t = {}; for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p]; if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]]; } return t; }; // REACT import * as React from 'react'; import classNames from 'classnames'; import { Scale, StyledIcon, DefaultColor, DefaultScale, } from '../utils'; /* eslint-disable max-len */ export const Home = React.forwardRef((_a, ref) => { var { color = DefaultColor, scale = DefaultScale, className } = _a, props = __rest(_a, ["color", "scale", "className"]); return (React.createElement(StyledIcon, Object.assign({ ref: ref, className: classNames('anchor-icon home', className), scale: scale, "$color": color }, props), React.createElement("svg", { width: Scale[scale], height: Scale[scale], viewBox: "0 0 16 16", xmlns: "http://www.w3.org/2000/svg" }, React.createElement("g", { fill: "currentColor", fillRule: "nonzero" }, React.createElement("path", { d: "M3 14.333h10v-4.55L8 5.337 3 9.782v4.551zm-1-5L8 4l6 5.333v5.334a.667.667 0 0 1-.667.666H2.667A.667.667 0 0 1 2 14.667V9.333z" }), React.createElement("path", { d: "M7 11v3.333h2V11H7zm2.333-1c.369 0 .667.298.667.667v4a.667.667 0 0 1-.667.666H6.667A.667.667 0 0 1 6 14.667v-4c0-.369.298-.667.667-.667h2.666zM12.875 8.333h1.438L8 2.426 1.687 8.333h1.438L8 4l4.875 4.333zm-.38 1L8 5.338 3.505 9.333H.843A.667.667 0 0 1 .387 8.18l7.157-6.697a.667.667 0 0 1 .911 0l7.158 6.697a.667.667 0 0 1-.456 1.153h-2.662z" }))))); }); //# sourceMappingURL=Home.component.js.map