import { Box, Button } from "@mui/material" import { StepButtonsBlock } from "../StepButtonsBlock/StepButtonsBlock" import { FC, useState } from "react"; import { TagKeys } from "../types"; import { CurrentFields } from "./CurrentFields"; import { NewFields } from "./NewFields"; type MinifiedData = { id: string; title: string; subTitle?: string; }; type ItemsSelectionViewProps = { items: MinifiedData[] | []; selectedItemId?: string | null; setSelectedItem: (value: string | null) => void; handleScroll?: () => void; onLargeBtnClick: () => void; onSmallBtnClick: () => void; activeScope: TagKeys; }; export const EntitiesQuestions: FC = ({ items, selectedItemId, setSelectedItem, handleScroll, onLargeBtnClick, onSmallBtnClick, activeScope, }) => { const [isCurrentFields, setIsCurrentFields] = useState(true); return ( { isCurrentFields ? : } ) }