add question area and clear selection button

This commit is contained in:
WindowsCrashed
2023-08-11 14:51:13 -03:00
parent a28b21f44e
commit 3d946d03ff
3 changed files with 56 additions and 83 deletions

View File

@@ -0,0 +1,19 @@
import React, { FC } from "react";
import { QuestionCard } from "./QuestionCard";
interface Props {
questions: string[]
onAddQuestion: Function,
onRemoveQuestion: Function
}
export const QuestionArea: FC<Props> = ({ questions, onAddQuestion, onRemoveQuestion }) => {
return (
<div className="col-span-3 border-l-2 border-r-2 border-gray-300 px-6">
{questions.map(question =>
<QuestionCard title={question}
onAddQuestion={onAddQuestion}
onRemoveQuestion={onRemoveQuestion}/>)}
</div>
)
}