UNPKG

@retailmenot/anchor

Version:

A React UI Library by RetailMeNot

35 lines 1.23 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'; // VENDOR import classNames from 'classnames'; import styled from '@xstyled/styled-components'; const StyledCard = styled('div') ` box-sizing: border-box; position: absolute; display: flex; justify-content: center; align-items: center; font-family: base; top: 0; right: 0; width: 2.5rem; height: 2.5rem; background-color: white; z-index: 1; `; export const CardAction = (_a) => { var { className, children } = _a, props = __rest(_a, ["className", "children"]); return (React.createElement(StyledCard, Object.assign({ className: classNames('anchor-card-action', className) }, props), children)); }; //# sourceMappingURL=CardAction.component.js.map