import FCard from "./faq-card";

export default function FAQBlock({ faqs }) {
  return (
    <>
      {Object.keys(faqs).map((faq) => (
        <FCard
          key={faq}
          question={faqs[faq].question}
          answer={faqs[faq].answer}
          src={faqs[faq].src}
          alt={faqs[faq].alt}
        />
      ))}
    </>
  );
}
