// // Copyright (c) 2025 rustmailer.com (https://rustmailer.com) // // This file is part of the Bichon Email Archiving Project // // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU Affero General Public License as published by // the Free Software Foundation, either version 3 of the License, or // (at your option) any later version. // // This program is distributed in the hope that it will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // GNU Affero General Public License for more details. // // You should have received a copy of the GNU Affero General Public License // along with this program. If not, see . import { useFormContext } from "react-hook-form"; import { Account } from "./action-dialog"; import { Accordion, AccordionItem, AccordionTrigger, AccordionContent } from "@/components/ui/accordion"; export default function Step4() { const { getValues } = useFormContext(); const summaryData = getValues(); return ( <>
Email: {summaryData.email} Name: {summaryData.name ?? "n/a"} Imap:
{summaryData.imap.auth.auth_type === 'Password' && ( )}
host: {summaryData.imap.host}
port: {summaryData.imap.port}
encryption: {summaryData.imap.encryption}
auth_type: {summaryData.imap.auth.auth_type}
password: {summaryData.imap.auth.password}
use proxy: {summaryData.imap.use_proxy ? "true" : "false"}
Date Selection: {summaryData.date_since?.fixed ? 'since ' + summaryData.date_since.fixed : summaryData.date_since?.relative && summaryData.date_since.relative.value && summaryData.date_since.relative.unit ? 'recent ' + summaryData.date_since.relative.value + ' ' + summaryData.date_since.relative.unit : 'n/a'} Folder Sync Limit: {summaryData.folder_limit ? summaryData.folder_limit : 'n/a'} Incremental Sync Interval: {summaryData.sync_interval_min} minutes
); }