This repository has been archived on 2022-10-07. You can view files and clone it, but cannot push or open issues or pull requests.
2020-02-18 16:25:03 +00:00
|
|
|
import React from "react";
|
2020-02-28 11:30:27 +00:00
|
|
|
import PropTypes from "prop-types";
|
2020-02-18 16:25:03 +00:00
|
|
|
import "./FAQ.scss";
|
2020-02-12 17:23:10 +00:00
|
|
|
|
|
|
|
export default function FAQ({ title, children }) {
|
|
|
|
return (
|
|
|
|
<div className="faq">
|
|
|
|
<div className="faq-dash" />
|
|
|
|
<div className="faq-text">
|
|
|
|
<h3>{title}</h3>
|
|
|
|
{children}
|
|
|
|
</div>
|
|
|
|
</div>
|
2020-02-18 16:25:03 +00:00
|
|
|
);
|
2020-02-12 17:23:10 +00:00
|
|
|
}
|
2020-02-28 11:30:27 +00:00
|
|
|
|
|
|
|
FAQ.propTypes = {
|
|
|
|
title: PropTypes.string,
|
|
|
|
children: PropTypes.node
|
|
|
|
};
|