amis-rpc-design/node_modules/antd/es/modal/components/NormalCancelBtn.js

16 lines
434 B
JavaScript
Raw Normal View History

2023-10-07 19:42:30 +08:00
"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;