From 31aa53c41705296f449cb897c15e1675f63fadbc Mon Sep 17 00:00:00 2001 From: bender Date: Wed, 10 Jun 2026 10:41:13 +0000 Subject: [PATCH] Update src/components/sections/faq/FaqSimple.tsx --- src/components/sections/faq/FaqSimple.tsx | 107 ---------------------- 1 file changed, 107 deletions(-) diff --git a/src/components/sections/faq/FaqSimple.tsx b/src/components/sections/faq/FaqSimple.tsx index fe60127..e69de29 100644 --- a/src/components/sections/faq/FaqSimple.tsx +++ b/src/components/sections/faq/FaqSimple.tsx @@ -1,107 +0,0 @@ -import { useState } from "react"; -import { motion, AnimatePresence } from "motion/react"; -import { Plus } from "lucide-react"; -import ScrollReveal from "@/components/ui/ScrollReveal"; -import Button from "@/components/ui/Button"; -import TextAnimation from "@/components/ui/TextAnimation"; -import { cls } from "@/lib/utils"; - -type FaqItem = { - question: string; - answer: string; -}; - -const FaqSimple = ({ - tag, - title, - description, - primaryButton, - secondaryButton, - items, -}: { - tag: string; - title: string; - description: string; - primaryButton?: { text: string; href: string }; - secondaryButton?: { text: string; href: string }; - items: FaqItem[]; -}) => { - const [activeIndex, setActiveIndex] = useState(null); - - const handleToggle = (index: number) => { - setActiveIndex(activeIndex === index ? null : index); - }; - - return ( -
-
-
-
-

{tag}

-
- - - - - - {(primaryButton || secondaryButton) && ( -
- {primaryButton &&
- )} -
- - - {items.map((item, index) => ( -
handleToggle(index)} - className="p-3 xl:p-3.5 2xl:p-4 rounded card cursor-pointer select-none" - > -
-

{item.question}

-
- -
-
- - {activeIndex === index && ( - -

{item.answer}

-
- )} -
-
- ))} -
-
-
- ); -}; - -export default FaqSimple;