2023-03-31 15:48:49 +00:00
|
|
|
|
import {Box, Typography, useTheme} from "@mui/material";
|
|
|
|
|
import ButtonsOptions from "../ButtonsOptions";
|
|
|
|
|
import SwitchTextField from "./switchTextField";
|
|
|
|
|
import React from "react";
|
|
|
|
|
import CustomTextField from "@ui_kit/CustomTextField";
|
2023-05-03 19:21:00 +00:00
|
|
|
|
import InfoIcon from "../../../assets/icons/InfoIcon";
|
2023-03-31 15:48:49 +00:00
|
|
|
|
|
2023-06-30 14:39:07 +00:00
|
|
|
|
interface Props {
|
|
|
|
|
totalIndex: number
|
|
|
|
|
}
|
|
|
|
|
export default function OwnTextField({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'}}
|
|
|
|
|
>
|
|
|
|
|
<CustomTextField placeholder={"Пример ответа"} text={''}/>
|
|
|
|
|
<Box sx={{display: 'flex', alignItems: 'center', gap: '12px'}}>
|
|
|
|
|
<Typography sx={{
|
|
|
|
|
fontWeight: 400,
|
|
|
|
|
fontSize: '16px',
|
|
|
|
|
lineHeight: '18.96px',
|
|
|
|
|
color: theme.palette.grey2.main
|
|
|
|
|
}}>Пользователю будет дано поле для ввода значения </Typography>
|
|
|
|
|
<InfoIcon/>
|
|
|
|
|
</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
|
|
|
|
<SwitchTextField switchState={switchState}/>
|
|
|
|
|
</>
|
|
|
|
|
)
|
|
|
|
|
}
|