+ {/* To Field */}
-
+
setCc(e.target.value)}
- placeholder="cc@example.com"
+ id="to"
+ value={to}
+ onChange={(e) => setTo(e.target.value)}
+ placeholder="recipient@example.com"
className="w-full mt-1 bg-white border-gray-300 text-gray-900"
/>
- )}
- {/* BCC Field */}
- {showBcc && (
+ {/* CC/BCC Toggle Buttons */}
+
+
+
+
+
+ {/* CC Field */}
+ {showCc && (
+
+
+ setCc(e.target.value)}
+ placeholder="cc@example.com"
+ className="w-full mt-1 bg-white border-gray-300 text-gray-900"
+ />
+
+ )}
+
+ {/* BCC Field */}
+ {showBcc && (
+
+
+ setBcc(e.target.value)}
+ placeholder="bcc@example.com"
+ className="w-full mt-1 bg-white border-gray-300 text-gray-900"
+ />
+
+ )}
+
+ {/* Subject Field */}
-
+
setBcc(e.target.value)}
- placeholder="bcc@example.com"
+ id="subject"
+ value={subject}
+ onChange={(e) => setSubject(e.target.value)}
+ placeholder="Enter subject"
className="w-full mt-1 bg-white border-gray-300 text-gray-900"
/>
- )}
- {/* Subject Field */}
-
-
- setSubject(e.target.value)}
- placeholder="Enter subject"
- className="w-full mt-1 bg-white border-gray-300 text-gray-900"
- />
-
-
- {/* Message Body */}
-
-
- {/* Attachments */}
- {attachments.length > 0 && (
-
-
Attachments
-
- {attachments.map((file, index) => (
-
- {file.name}
-
-
- ))}
+ {/* Message Body */}
+
- )}
+
+ {/* Attachments */}
+ {attachments.length > 0 && (
+
+
Attachments
+
+ {attachments.map((file, index) => (
+
+ {file.name}
+
+
+ ))}
+
+
+ )}
+
{/* Modal Footer */}