import React, { FC, } from "react"; import { SideBar } from "./SideBar"; import { SelectedQuestionCard } from "./SelectedQuestionCard"; import { Button } from "../../../components"; type Props = { questions: { id: string, label: string, removeHandler: Function }[] onClearSelectedQuestions: Function } export const SelectedQuestionsSideBar: FC = ({ questions, onClearSelectedQuestions }) => { return (
{questions.length ? <>
{questions.map(q => )}
:

Nenhuma questão selecionada

}
) }