2023-03-31 15:48:49 +00:00
|
|
|
|
import {Box, Typography, useTheme} from "@mui/material";
|
|
|
|
|
import ButtonsOptions from "../ButtonsOptions";
|
|
|
|
|
import React from "react";
|
|
|
|
|
import CustomTextField from "@ui_kit/CustomTextField";
|
|
|
|
|
import SwitchSlider from "./switchSlider";
|
|
|
|
|
|
2023-06-30 14:39:07 +00:00
|
|
|
|
interface Props{
|
|
|
|
|
totalIndex: number
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export default function SliderOptions({totalIndex}: Props) {
|
2023-03-31 15:48:49 +00:00
|
|
|
|
const theme = useTheme();
|
|
|
|
|
const [switchState, setSwitchState] = React.useState('setting');
|
|
|
|
|
const SSHC = (data: string) => {
|
|
|
|
|
setSwitchState(data)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return (
|
|
|
|
|
<>
|
|
|
|
|
<Box
|
|
|
|
|
sx={{
|
|
|
|
|
width: '100%',
|
|
|
|
|
maxWidth: '640px',
|
|
|
|
|
display: 'flex',
|
|
|
|
|
padding: '20px',
|
|
|
|
|
flexDirection: 'column',
|
|
|
|
|
gap: '20px'}}
|
|
|
|
|
>
|
|
|
|
|
|
|
|
|
|
<Box sx={{gap: '10px', display: 'flex', flexDirection: 'column'}}>
|
|
|
|
|
<Typography>Выбор значения из диапазона</Typography>
|
|
|
|
|
<Box sx={{display: 'flex', alignItems: 'center', gap: '20px'}}>
|
|
|
|
|
<CustomTextField placeholder={'0'} text={''}/>
|
|
|
|
|
<Typography>—</Typography>
|
|
|
|
|
<CustomTextField placeholder={'100'} text={''}/>
|
|
|
|
|
</Box>
|
|
|
|
|
</Box>
|
|
|
|
|
<Box sx={{display: 'flex', alignItems: 'center', justifyContent: 'space-between'}}>
|
|
|
|
|
<Box>
|
|
|
|
|
<Typography>Начальное значение</Typography>
|
|
|
|
|
<CustomTextField placeholder={'50'} text={''}/>
|
|
|
|
|
</Box>
|
|
|
|
|
<Box>
|
|
|
|
|
<Typography>Шаг</Typography>
|
|
|
|
|
<CustomTextField placeholder={'1'} text={''}/>
|
|
|
|
|
</Box>
|
|
|
|
|
|
|
|
|
|
</Box>
|
|
|
|
|
</Box>
|
2023-06-30 14:39:07 +00:00
|
|
|
|
<ButtonsOptions switchState={switchState} SSHC={SSHC} totalIndex={totalIndex}/>
|
2023-03-31 15:48:49 +00:00
|
|
|
|
<SwitchSlider switchState={switchState}/>
|
|
|
|
|
</>
|
|
|
|
|
)
|
|
|
|
|
}
|