'use client'; import { useState } from 'react'; import type { LucideIcon } from 'lucide-react'; import { ChevronLeft, ChevronRight, FileText, Headphones, Heart, HelpCircle, ShieldCheck, Star, User, } from 'lucide-react'; import Link from 'next/link'; import * as Accordion from '@/components/ui/accordion'; import * as Badge from '@/components/ui/badge'; const tabsData: { id: string; label: string; icon: LucideIcon }[] = [ { id: 'account', label: 'Account', icon: User }, { id: 'billing', label: 'Billing', icon: FileText }, { id: 'support', label: 'Support', icon: Headphones }, { id: 'security', label: 'Security', icon: ShieldCheck }, { id: 'features', label: 'Features', icon: Star }, { id: 'compliance', label: 'Compliance', icon: Heart }, ]; const faqData: Record< string, { id: string; question: string; answer: string; date?: string }[] > = { account: [ { id: 'acc1', question: 'How do I connect my bank accounts?', answer: "Connecting your bank accounts is simple and secure. Go to Settings > Bank Accounts, click 'Add Account', and follow the secure authentication process. We support over 10,000 financial institutions.", }, { id: 'acc2', question: 'Can I manage multiple businesses?', answer: "Yes. You'll get a live dashboard that shows spend, leads, conversions, and ROI — all in one place, updated by the minute.", }, { id: 'acc3', question: 'What integrations are available?', answer: 'We integrate with popular accounting software like QuickBooks, Xero, and FreshBooks, as well as payment processors, CRMs, and productivity tools. Check our integrations page for the full list.', }, { id: 'acc4', question: 'Is there a free trial available?', answer: 'Yes, we offer a 14-day free trial with full access to all features. No credit card required to start. You can upgrade to a paid plan anytime during or after the trial.', }, { id: 'acc5', question: 'How is data privacy handled?', answer: 'We take data privacy seriously. All data is encrypted in transit and at rest. We are GDPR compliant and follow industry best practices for data security and privacy protection.', }, { id: 'acc6', question: 'Can I export financial reports?', answer: 'Absolutely! You can export reports in multiple formats including PDF, CSV, and Excel. Schedule automatic exports or generate them on-demand from your dashboard.', }, { id: 'acc7', question: 'Compliant with local regulations?', answer: 'Yes, our platform is designed to comply with local financial regulations in major markets. We regularly update our compliance features to meet evolving regulatory requirements.', }, ], billing: [ { id: 'bill1', question: 'What payment methods do you accept?', answer: 'We accept all major credit cards (Visa, MasterCard, American Express), PayPal, and bank transfers for annual plans. Enterprise customers can also pay via invoice.', }, { id: 'bill2', question: 'Can I get a refund if I cancel?', answer: 'Yes, we offer a 30-day money-back guarantee for all new subscriptions. If you are not satisfied, contact our support team for a full refund.', }, { id: 'bill3', question: 'How does billing work for team plans?', answer: 'Team plans are billed per seat on a monthly or annual basis. You only pay for active users, and you can add or remove seats at any time with prorated billing.', }, ], support: [ { id: 'sup1', question: 'What support channels are available?', answer: 'We offer 24/7 live chat and email support for all plans. Phone support and dedicated account managers are available for Business and Enterprise customers.', }, { id: 'sup2', question: 'What is your average response time?', answer: 'Our average first response time is under 2 hours for email and under 5 minutes for live chat. Priority support customers receive responses within 30 minutes.', }, { id: 'sup3', question: 'Do you offer onboarding assistance?', answer: 'Yes! All plans include access to our comprehensive knowledge base and video tutorials. Business and Enterprise plans include personalized onboarding sessions with our success team.', }, ], security: [ { id: 'sec1', question: 'How is my data protected?', answer: 'We use AES-256 encryption for data at rest and TLS 1.3 for data in transit. All data is stored in SOC 2 Type II certified data centers with 24/7 monitoring.', }, { id: 'sec2', question: 'Do you support SSO and 2FA?', answer: 'Yes, we support Single Sign-On (SSO) via SAML 2.0 and OAuth for enterprise plans. Two-factor authentication (2FA) is available for all accounts at no extra cost.', }, { id: 'sec3', question: 'Where is my data stored?', answer: 'Your data is stored in secure data centers located in the US, EU, and Asia-Pacific regions. Enterprise customers can choose their preferred data residency location.', }, { id: 'sec4', question: 'How often do you perform security audits?', answer: 'We undergo annual third-party security audits and penetration testing. Our security team also conducts continuous internal assessments and vulnerability scanning.', }, ], features: [ { id: 'feat1', question: 'What integrations are available?', answer: 'We integrate with 100+ popular tools including Slack, Microsoft Teams, Jira, Salesforce, HubSpot, and Zapier. Our REST API also allows custom integrations.', }, { id: 'feat2', question: 'Can I export my data?', answer: 'Yes, you can export all your data at any time in various formats including CSV, JSON, and PDF. Bulk exports and scheduled exports are available on Business plans.', }, { id: 'feat3', question: 'Do you offer an API?', answer: 'Yes, we provide a comprehensive REST API with detailed documentation. API access is included in all plans with rate limits based on your subscription tier.', }, { id: 'feat4', question: 'Is there a limit on storage?', answer: 'Storage limits vary by plan. Starter plans include 10GB, Professional plans include 100GB, and Enterprise plans offer unlimited storage.', date: '24 May, 2025', }, ], compliance: [ { id: 'comp1', question: 'Are you GDPR compliant?', answer: 'Yes, we are fully GDPR compliant. We offer data processing agreements (DPA), support data subject requests, and provide tools for data portability and deletion.', }, { id: 'comp2', question: 'Do you have SOC 2 certification?', answer: 'Yes, we maintain SOC 2 Type II certification which is audited annually. We can provide our SOC 2 report to enterprise customers under NDA.', }, { id: 'comp3', question: 'Are you HIPAA compliant?', answer: 'Yes, we offer HIPAA-compliant configurations for healthcare customers. Business Associate Agreements (BAA) are available for qualifying organizations.', }, { id: 'comp4', question: 'What about data residency requirements?', answer: 'We support data residency in multiple regions including US, EU, UK, and Asia-Pacific. Enterprise customers can specify their preferred data location.', date: '24 May, 2025', }, { id: 'comp5', question: 'Do you support audit logs?', answer: 'Yes, comprehensive audit logs are available on all plans. You can track user activities, permission changes, and data access with exportable logs for compliance reporting.', date: '24 May, 2025', }, ], }; export default function CategorizedFinanceFaq() { const [activeTab, setActiveTab] = useState('account'); const handleTabClick = (tab: string) => { setActiveTab(tab); }; const tabOrder = tabsData.map((tab) => tab.id); const currentIndex = tabOrder.indexOf(activeTab); const handlePrev = () => { if (currentIndex <= 0) return; setActiveTab(tabOrder[currentIndex - 1]); }; const handleNext = () => { if (currentIndex >= tabOrder.length - 1) return; setActiveTab(tabOrder[currentIndex + 1]); }; return (