import React from 'react'; import { Disclosure } from '@headlessui/react'; import { ChevronDownIcon, ChevronUpIcon } from '@heroicons/react/solid'; export const FAQ = ({ question, answer, defaultOpen }) => ( {({ open }) => ( <> {question} {!open ? ( ) : ( )} {answer}
)}
); export default ({ excerpt, title, faq }) => (

{title}

{excerpt}

{faq.map((props, idx) => ( ))}
);