Files
nightmarket/client/plugin/components/QuestionAnswer.tsx
2022-07-08 16:33:19 +02:00

16 lines
427 B
TypeScript

import { FunctionalComponent, h } from "preact";
import { faqStyles } from "../helpers/theme";
import { QuestionAnswerProps } from "../typings/typings";
export const QuestionAnswer: FunctionalComponent<QuestionAnswerProps> = (props) => {
return (
<div style={{ marginTop: "8px", marginBottom: "4px" }}>
<div style={faqStyles.question}>
{props.question}
</div>
<div>
{props.answer}
</div>
</div>
);
};