import React, { useState } from "react"; import Button from "../ButtonDesign/Button"; const Feedback = ({ feedbakTitle, feedbacks }) => { const [closeModal, setCloseModal] = useState(false); const [activeFeedback, setActiveFeedback] = useState(null); return (
setCloseModal(true)} > remove

{feedbakTitle}

{feedbacks.map((item, index) => (
setActiveFeedback(item)} onClick={() => setActiveFeedback(activeFeedback === item ? null : item) } >

{item.name}

))}