import { Form, Input, Modal } from 'antd'; import { IModalProps } from '@/interfaces/common'; type FieldType = { username?: string; }; const FeedbackModal = ({ visible, hideModal }: IModalProps) => { const [form] = Form.useForm(); const handleOk = async () => { const ret = await form.validateFields(); }; return (
name="username" rules={[{ required: true, message: 'Please input your username!' }]} >
); }; export default FeedbackModal;