@@ -28,7 +28,6 @@ import {
28
28
} from "@/components/ui/command" ;
29
29
import Navbar from "@/components/Navbar" ;
30
30
import Footer from "@/components/Footer" ;
31
- import { array } from "zod" ;
32
31
import { PostPDFToCloudinary } from "@/interface"
33
32
const Page = ( ) => {
34
33
const router = useRouter ( ) ;
@@ -138,47 +137,7 @@ const Page = () => {
138
137
} ,
139
138
) ;
140
139
141
- // const formData = new FormData();
142
- // for (const file of files) {
143
- // formData.append("files", file);
144
- // }
145
- // formData.append("slot", slot);
146
- // formData.append("subject", subject);
147
- // formData.append("exam", exam);
148
- // formData.append("year", year);
149
- // setIsUploading(true); // Set uploading to true
150
140
151
- // try {
152
- // const result = await toast.promise(
153
- // (async () => {
154
- // try {
155
- // const response = await axios.post<{ message: string }>(
156
- // "/api/mail",
157
- // formData,
158
- // {
159
- // headers: {
160
- // "Content-Type": "multipart/form-data",
161
- // },
162
- // }
163
- // );
164
- // return response.data;
165
- // } catch (error) {
166
- // throw handleAPIError(error);
167
- // }
168
- // })(),
169
- // {
170
- // loading: "Sending papers",
171
- // success: "Papers successfully sent",
172
- // error: (err: ApiError) => err.message,
173
- // }
174
- // );
175
-
176
- // if (result?.message === "Email sent successfully!") {
177
- // }
178
- // } catch (e) {
179
- // } finally {
180
- // setIsUploading(false);
181
- // }
182
141
} ;
183
142
184
143
const handleSubjectSelect = ( value : string ) => {
0 commit comments