"use client";
import { useState } from "react";
import { motion, AnimatePresence } from "framer-motion";
import { Plus, Minus } from "lucide-react";
import { SectionHeader } from "@/app/components/ui/section-header";
import { Badge } from "@/app/components/ui/badge";
function FaqItem({ q, a }: { q: string; a: string }) {
const [open, setOpen] = useState(false);
return (
{open && (
{a}
)}
);
}
export default function SSSClient({ lang, dict }: { lang: string; dict: any }) {
const t = dict.faq;
const FAQS = [
{
category: t.categories.accommodation,
variant: "blue" as const,
items: [
{ q: t.q1, a: t.a1 },
{ q: t.q2, a: t.a2 },
{ q: t.q3, a: t.a3 },
],
},
{
category: t.categories.kitesurf,
variant: "green" as const,
items: [
{ q: t.q4, a: t.a4 },
{ q: t.q5, a: t.a5 },
{ q: t.q6, a: t.a6 },
],
},
{
category: t.categories.reservation,
variant: "gold" as const,
items: [
{ q: t.q7, a: t.a7 },
{ q: t.q8, a: t.a8 },
{ q: t.q9, a: t.a9 },
],
},
];
return (
{/* Hero */}
{t.eyebrow}
{t.title}
{t.subtitle}
{FAQS.map((group) => (
{group.category}
{group.items.map((item) => (
))}
))}
);
}