2024-04-08 14:05:38 +00:00
|
|
|
import { Box, useMediaQuery, useTheme } from "@mui/material";
|
|
|
|
|
import { FC, useState } from "react";
|
2024-04-05 10:48:10 +00:00
|
|
|
import { StepButtonsBlock } from "../StepButtonsBlock/StepButtonsBlock";
|
2024-04-08 14:05:38 +00:00
|
|
|
import { CustomSelect } from "../../../../components/CustomSelect/CustomSelect";
|
2024-04-05 10:48:10 +00:00
|
|
|
|
|
|
|
|
type IntegrationStep2Props = {
|
|
|
|
|
handlePrevStep: () => void;
|
|
|
|
|
handleNextStep: () => void;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
export const IntegrationStep2: FC<IntegrationStep2Props> = ({
|
|
|
|
|
handlePrevStep,
|
|
|
|
|
handleNextStep,
|
|
|
|
|
}) => {
|
|
|
|
|
const theme = useTheme();
|
2024-04-08 14:05:38 +00:00
|
|
|
const isMobile = useMediaQuery(theme.breakpoints.down(600));
|
|
|
|
|
const isTablet = useMediaQuery(theme.breakpoints.down(1000));
|
|
|
|
|
|
|
|
|
|
const [selectedItem, setSelectedItem] = useState<number | null>(null);
|
|
|
|
|
const itemsMock = [
|
|
|
|
|
"Ангелина Полякова",
|
|
|
|
|
"Петр Иванов",
|
|
|
|
|
"Алексей Звягинцев",
|
|
|
|
|
"Никита Стрельцов",
|
|
|
|
|
"Инна Ким",
|
|
|
|
|
"Дмитрий Морозов",
|
|
|
|
|
"Арсен Тадевосян",
|
|
|
|
|
];
|
2024-04-05 10:48:10 +00:00
|
|
|
|
|
|
|
|
return (
|
|
|
|
|
<Box
|
|
|
|
|
sx={{
|
|
|
|
|
display: "flex",
|
|
|
|
|
flexDirection: "column",
|
|
|
|
|
alignItems: "center",
|
|
|
|
|
height: "100%",
|
|
|
|
|
flexGrow: 1,
|
|
|
|
|
}}
|
|
|
|
|
>
|
2024-04-08 14:05:38 +00:00
|
|
|
<Box sx={{ width: "100%", marginTop: "20px" }}>
|
|
|
|
|
<CustomSelect
|
|
|
|
|
selectedItem={selectedItem}
|
|
|
|
|
items={itemsMock}
|
|
|
|
|
setSelectedItem={setSelectedItem}
|
|
|
|
|
/>
|
|
|
|
|
</Box>
|
2024-04-05 10:48:10 +00:00
|
|
|
<StepButtonsBlock
|
|
|
|
|
handleNextStep={handleNextStep}
|
|
|
|
|
handlePrevStep={handlePrevStep}
|
|
|
|
|
/>
|
|
|
|
|
</Box>
|
|
|
|
|
);
|
|
|
|
|
};
|