mirror of
https://github.com/factorgroup/nightmarket.git
synced 2026-04-17 03:00:50 -04:00
16 lines
427 B
TypeScript
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>
|
|
);
|
|
}; |