UNPKG

@vimeo/iris

Version:
23 lines (16 loc) 904 B
'use strict'; Object.defineProperty(exports, '__esModule', { value: true }); var tslib_es6 = require('../../tslib.es6-3ec409b7.js'); var React = require('react'); var components_Card_Card_style = require('./Card.style.js'); var utils_HOCs_withIris = require('../../utils/HOCs/withIris.js'); require('styled-components'); require('polished'); function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; } var React__default = /*#__PURE__*/_interopDefaultLegacy(React); var Card = utils_HOCs_withIris.withIris(CardComponent); function CardComponent(_a) { var forwardRef = _a.forwardRef, loading = _a.loading, props = tslib_es6.__rest(_a, ["forwardRef", "loading"]); return React__default["default"].createElement(components_Card_Card_style.Card, tslib_es6.__assign({ ref: forwardRef, "$loading": loading }, props)); } exports.Card = Card;