import React, { useState } from 'react'; import { Button, Form, Input, Select, message } from 'antd'; import axios from 'axios'; const { Option } = Select; const ProxyManager = () => { const [form] = Form.useForm(); const [loading, setLoading] = useState(false); const handleSubmit = async (values) => { setLoading(true); try { const { action, ...data } = values; await axios.post(`/proxy/api/proxy/${action}/`, data); message.success(`Proxy ${action} successful`); form.resetFields(); } catch (error) { message.error(error.response?.data?.error || 'An error occurred'); } finally { setLoading(false); } }; return (