Preview: FaqSection.jsx
Size: 463 B
//proc/thread-self/root/home/byroehnu/easetack.com/resources/js/Frontend/Components/Sections/FaqSection.jsx
import Faq1 from "@/Frontend/Components/Faq/Faq1"
import Faq2 from "@/Frontend/Components/Faq/Faq2"
export default function FaqSection({ sections_data }) {
const sectionLayout = sections_data?.layout ?? "1"
// conditional render
let section = ""
if (sectionLayout === "1") {
section = <Faq1 data={sections_data} />
} else if (sectionLayout === "2") {
section = <Faq2 data={sections_data} />
}
return <>{section}</>
}
Directory Contents
Dirs: 0 × Files: 31