on the pop on this page, create 2 tabs:
if user selects Azure AD, then the current form should be visible. if user select IMAP/SMTP,
then the form should contain, 2 section one to add IMAP email clients and SMTP email clients, to add a email client, user has to click on add, then select the Email client from dropdown (Outlook, GMail, Yahoo, Zoho) then select server URL and port (this will be pre-filled based on the dropdown selcttion)
the same thing will happen for the SMTP list as well
create a design for this
I'll create a tabbed interface for your email configuration modal with the two requested tabs and appropriate functionality for each.
Tabbed Interface:
Azure AD Tab:
IMAP/SMTP Tab:
When adding a client, users can:
Responsive Design:
The implementation uses shadcn/ui components for a clean, modern interface that matches the design in the screenshot. The functionality is fully implemented with React state management to handle the form data and interactions.
on the add email clients section:
I'll update the email configuration modal to add labels for each field and support custom email client configurations.
I've enhanced the email configuration modal with the following improvements:
Added Field Labels:
Added Custom Email Client Option:
When "Custom" is selected:
Improved Data Model:
isCustom
flag to track whether a client is using custom settingsThese changes make the form more user-friendly and flexible, allowing users to either select from predefined email providers or configure custom email clients when needed.