// src/pages/FAQ.tsx import React, { useState } from 'react'; import faqData from '../data/faq.json'; import { ChevronDown, ChevronUp, MessageCircleQuestionMark } from 'lucide-react'; export const FAQ: React.FC = () => { const [openIndex, setOpenIndex] = useState(null); const toggleQuestion = (index: string) => { setOpenIndex(openIndex === index ? null : index); }; return (

Veckoschema

Här hittar du när vi bemannar Kullaberg.

{faqData.map((section, sIndex) => (

{section.category}

{section.questions.map((item, qIndex) => { const id = `${sIndex}-${qIndex}`; const isOpen = openIndex === id; return (
{item.a}
); })}
))}
); };