import { Box, useTheme } from "@mui/material"; import { Item } from "../Item/Item"; import { StepButtonsBlock } from "../../StepButtonsBlock/StepButtonsBlock"; import { FC } from "react"; import { TQuestionEntity } from "../../IntegrationsModal"; type TitleKeys = "contacts" | "company" | "deal" | "users" | "buyers"; type ItemDetailsViewProps = { setIsSelection: (value: boolean) => void; handlePrevStep: () => void; handleNextStep: () => void; questionEntity: TQuestionEntity; setActiveItem: (value: string | null) => void; }; export const ItemDetailsView: FC = ({ handlePrevStep, handleNextStep, questionEntity, setActiveItem, setIsSelection, }) => { const theme = useTheme(); return ( {questionEntity && Object.keys(questionEntity).map((item) => ( { setIsSelection(true); setActiveItem(item); }} data={questionEntity} /> ))} ); };