Repository URL to install this package:
|
Version:
2.1.14 ▾
|
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
const tslib_1 = require("tslib");
const react_1 = tslib_1.__importDefault(require("react"));
const styled_1 = require("./styled");
const Empty_1 = require("@skava/ui/dist/components/atoms/Empty");
function defaultRenderSubscriptionDetailList(props) {
return react_1.default.createElement(Empty_1.Empty, null);
}
exports.defaultRenderSubscriptionDetailList = defaultRenderSubscriptionDetailList;
function defaultRenderSubscriptionCard(props) {
return react_1.default.createElement(Empty_1.Empty, null);
}
exports.defaultRenderSubscriptionCard = defaultRenderSubscriptionCard;
function defaultRenderBox(props) {
const {
renderSubscriptionCard,
renderSubscriptionDetailList
} = props,
remainingProps = tslib_1.__rest(props, ["renderSubscriptionCard", "renderSubscriptionDetailList"]);
const SubscriptionCardView = renderSubscriptionCard(remainingProps);
const detailListView = renderSubscriptionDetailList(remainingProps);
return react_1.default.createElement(react_1.default.Fragment, null, detailListView);
}
exports.defaultRenderBox = defaultRenderBox;
function defaultRenderWrapper(props) {
const {
className,
children
} = props;
const passthroughProps = Object.freeze({
className,
'data-qa': props['data-qa']
});
return react_1.default.createElement(styled_1.Wrapper, Object.assign({}, passthroughProps), children);
}
exports.defaultRenderWrapper = defaultRenderWrapper;