@retailmenot/anchor
Version:
A React UI Library by RetailMeNot
41 lines (36 loc) • 1.88 kB
JavaScript
import { a as __rest } from './anchor-chunk-27f34e54.js';
import { a as Scale, b as StyledIcon, c as DefaultColor, d as DefaultScale } from './anchor-chunk-25c07228.js';
import { forwardRef, createElement, useContext, useState, Children, Fragment, useEffect, useRef, createRef, Component, cloneElement, useReducer, PureComponent, isValidElement, createContext, useImperativeHandle } from 'react';
import classNames from 'classnames';
import './anchor-chunk-7b9d8557.js';
import '@xstyled/styled-components';
import '@xstyled/system';
/* eslint-disable max-len */
var Home = forwardRef(function (_a, ref) {
var _a$color = _a.color,
color = _a$color === void 0 ? DefaultColor : _a$color,
_a$scale = _a.scale,
scale = _a$scale === void 0 ? DefaultScale : _a$scale,
className = _a.className,
props = __rest(_a, ["color", "scale", "className"]);
return createElement(StyledIcon, Object.assign({
ref: ref,
className: classNames('anchor-icon home', className),
scale: scale,
"$color": color
}, props), createElement("svg", {
width: Scale[scale],
height: Scale[scale],
viewBox: "0 0 16 16",
xmlns: "http://www.w3.org/2000/svg"
}, createElement("g", {
fill: "currentColor",
fillRule: "nonzero"
}, 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"
}), 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"
}))));
});
export { Home };
//# sourceMappingURL=home.js.map