Repository URL to install this package:
|
Version:
3.0.1 ▾
|
@skava/ui
/
dist
/
components
/
abstractions
/
B2B
/
DashboardOverview
/
DashboardCard
/
DashboardCard.js
|
|---|
"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 renderProps_1 = require("./renderProps");
class DashboardCard extends react_1.default.PureComponent {
render() {
const _a = this.props,
{
renderWrapper,
renderHeading,
renderDescription,
renderButton
} = _a,
remainingProps = tslib_1.__rest(_a, ["renderWrapper", "renderHeading", "renderDescription", "renderButton"]);
const children = react_1.default.createElement(styled_1.CardBox, null, renderHeading(remainingProps), renderDescription(remainingProps), renderButton(remainingProps));
return renderWrapper(Object.assign({
children
}, remainingProps));
}
}
DashboardCard.defaultProps = {
className: '',
// renderProps
renderHeading: renderProps_1.defaultRenderHeading,
renderDescription: renderProps_1.defaultRenderDescription,
renderButton: renderProps_1.defaultRenderButton,
renderWrapper: renderProps_1.defaultRenderWrapper
};
exports.DashboardCard = DashboardCard;
exports.default = DashboardCard; //# sourceMappingURL=DashboardCard.js.map