'use client'; import React, { useState } from 'react'; import { ChevronDown } from 'lucide-react'; import { resolveLocalised } from '@/types'; import { KineticText } from '@/components/magicui/kinetic-text'; interface FaqSectionProps { title?: any; items?: Array<{ q: string; a: string; }>; locale?: string; } export function FaqSection({ title = 'Frequently asked questions', items = [], locale = 'en', }: FaqSectionProps) { const [openIndex, setOpenIndex] = useState(0); const resolvedTitle = resolveLocalised(title, locale) || 'Frequently asked questions'; const defaultItems = [ { q: 'Do you store or retain uploaded user photos?', a: 'Never. CRE Innovations enforces a strict zero-retention policy. All photo inferences occur synchronously in volatile GPU memory and the enhanced image is streamed straight back to your browser session. No images are saved on disk or remote servers.', }, { q: 'Can I try all tools free on the web without an account?', a: 'Yes. Every visitor gets 5 free trials each day per tool without registering or providing an email address. For high volume batch editing and unlimited processing, download our native mobile apps.', }, { q: 'How does the handoff to the mobile app work?', a: 'Each tool has a dedicated home mobile app. When you want to continue editing on your phone, click "Get the App" or scan the dynamically generated QR code on desktop to jump directly into the app with a 50 free credit welcome bonus.', }, { q: 'What image formats and file sizes are supported?', a: 'We accept JPEG, PNG, and WebP images up to 12MB. The engine performs lossless reconstruction returning studio-quality resolutions.', }, ]; const displayItems = items && items.length > 0 ? items : defaultItems; return (
{/* Section Header */}

{resolvedTitle}

Technical details regarding zero-storage privacy, format limits, and mobile client handoff.

{/* Rounded Accordion Cards (NO SHARP EDGES) */}
{displayItems.map((item, idx) => { const isOpen = openIndex === idx; return (
{isOpen && (
{item.a}
)}
); })}
); }