import GmailIcon from "./icons/gmail-icon"; import OutlookIcon from "./icons/outlook-icon"; import EmailIcon from "./icons/email-icon"; import GmailAccount from "./connections/gmail"; import { useState } from "react"; export default function ConnectAccount() { const [accountProvider, setAccountProvider] = useState("none"); const handleAccountChange = (provider: string) => { setAccountProvider(provider); }; return (
{accountProvider === "none" && (

Connect an account

Choose your email provider to add your email account.

handleAccountChange("gmail")} className="flex items-center cursor-pointer justify-between p-4 mb-4 bg-gray-100 rounded-lg"> {/* Google Icon */} Gmail
handleAccountChange("outlook")} className="flex cursor-pointer items-center justify-between p-4 mb-4 bg-gray-100 rounded-lg"> {/* Microsoft Icon */} Office 365 / Outlook
handleAccountChange("other")} className="flex cursor-pointer items-center justify-between p-4 bg-gray-100 rounded-lg"> {/* Generic Email Icon */} Any Provider IMAP / SMTP
)} {accountProvider === "gmail" && ( )}
); }