amis-rpc-design/node_modules/antd/es/modal/components/NormalCancelBtn.js
2023-10-07 19:42:30 +08:00

16 lines
434 B
JavaScript

"use client";
import React, { useContext } from 'react';
import Button from '../../button';
import { ModalContext } from '../context';
const NormalCancelBtn = () => {
const {
cancelButtonProps,
cancelTextLocale,
onCancel
} = useContext(ModalContext);
return /*#__PURE__*/React.createElement(Button, Object.assign({
onClick: onCancel
}, cancelButtonProps), cancelTextLocale);
};
export default NormalCancelBtn;