import { Form as FormAnt, Input, Button } from "antd"; import { prof } from "../../API/LayoutApi/profile"; const ChangePassword = () => { const [form] = FormAnt.useForm(); const submit = () => { form.validateFields().then(async (values) => { form.resetFields(); await prof.changePass(values); }); }; return (