PromoCursed/node_modules/antd/lib/modal/components/NormalCancelBtn.js

23 lines
822 B
JavaScript
Raw Normal View History

2024-08-20 23:25:37 +04:00
"use strict";
"use client";
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard").default;
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
var _react = _interopRequireWildcard(require("react"));
var _button = _interopRequireDefault(require("../../button"));
var _context = require("../context");
const NormalCancelBtn = () => {
const {
cancelButtonProps,
cancelTextLocale,
onCancel
} = (0, _react.useContext)(_context.ModalContext);
return /*#__PURE__*/_react.default.createElement(_button.default, Object.assign({
onClick: onCancel
}, cancelButtonProps), cancelTextLocale);
};
var _default = exports.default = NormalCancelBtn;