@douyinfe/semi-ui
Version:
A modern, comprehensive, flexible design system and UI library. Connect DesignOps & DevOps. Quickly build beautiful React apps. Maintained by Douyin-fe team.
30 lines (29 loc) • 1.11 kB
JavaScript
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = Footer;
var _get2 = _interopRequireDefault(require("lodash/get"));
var _react = _interopRequireDefault(require("react"));
var _classnames = _interopRequireDefault(require("classnames"));
var _button = _interopRequireDefault(require("../button"));
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
function Footer() {
let props = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
const {
prefixCls,
locale,
onCancelClick,
onConfirmClick
} = props;
const wrapCls = (0, _classnames.default)(`${prefixCls}-footer`);
return /*#__PURE__*/_react.default.createElement("div", {
className: wrapCls
}, /*#__PURE__*/_react.default.createElement(_button.default, {
theme: "borderless",
onClick: onCancelClick
}, (0, _get2.default)(locale, 'footer.cancel', '')), /*#__PURE__*/_react.default.createElement(_button.default, {
theme: "solid",
onClick: onConfirmClick
}, (0, _get2.default)(locale, 'footer.confirm', '')));
}
;