Repository URL to install this package:
|
Version:
4.0.29 ▾
|
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
const tslib_1 = require("tslib");
const react_1 = tslib_1.__importDefault(require("react"));
const exotic_1 = require("exotic");
const renderProps_1 = require("./renderProps");
class ConfirmationCard extends react_1.default.Component {
render() {
const _a = this.props,
{
renderWrapper
} = _a,
remainingProps = tslib_1.__rest(_a, ["renderWrapper"]);
const children = renderProps_1.defaultRenderBox(remainingProps);
const view = renderWrapper(Object.assign({}, remainingProps, {
children
}));
return view;
}
}
ConfirmationCard.defaultProps = {
className: '',
// data
confirmationText: 'Remove Card?',
confirmButtonLabel: 'Yes',
cancelButtonLabel: 'Cancel',
// handlers
onConfirmation: exotic_1.NO_OP,
onCancel: exotic_1.NO_OP,
// renderProps
renderText: renderProps_1.defaultRenderText,
renderButtons: renderProps_1.defaultRenderButtons,
renderWrapper: renderProps_1.defaultRenderWrapper
};
exports.ConfirmationCard = ConfirmationCard;
exports.default = ConfirmationCard; //# sourceMappingURL=ConfirmationCard.js.map