chore: add modal

This commit is contained in:
jialin
2024-05-20 15:43:26 +08:00
parent eeab170970
commit 313da7a9d2
10 changed files with 361 additions and 86 deletions
+20
View File
@@ -0,0 +1,20 @@
import { Button, Space } from 'antd';
type ModalFooterProps = {
onOk: () => void;
onCancel: () => void;
};
const ModalFooter: React.FC<ModalFooterProps> = ({ onOk, onCancel }) => {
return (
<Space size={20}>
<Button onClick={onCancel} style={{ width: '88px' }}>
</Button>
<Button type="primary" onClick={onOk} style={{ width: '88px' }}>
</Button>
</Space>
);
};
export default ModalFooter;