import { FC } from "react"; import { Box, useMediaQuery, useTheme } from "@mui/material"; import { StepButtonsBlock } from "../StepButtonsBlock"; import { SettingItem } from "./SettingItem/SettingItem"; import { SelectedQuestions, SelectedTags } from "../types"; type AmoSettingsBlockProps = { stepTitles: string[]; setStep: (value: number) => void; setIsSettingsBlock: (value: boolean) => void; selectedFunnel: string | null; selectedStage: string | null; selectedDealUser: string | null; selectedQuestions: SelectedQuestions; selectedTags: SelectedTags; }; export const SettingsBlock: FC = ({ stepTitles, setStep, setIsSettingsBlock, selectedFunnel, selectedDealUser, selectedStage, selectedQuestions, selectedTags, }) => { const theme = useTheme(); const isMobile = useMediaQuery(theme.breakpoints.down(600)); return ( {stepTitles && stepTitles.map((title, index) => ( ))} setIsSettingsBlock(false)} isLargeBtnMissing={true} /> ); };