import React, {useState} from 'react'; import Select from '@mui/material/Select'; import MenuItem from '@mui/material/MenuItem'; import FormControl from '@mui/material/FormControl'; import InputLabel from '@mui/material/InputLabel'; import {Accordion, AccordionSummary, AccordionDetails} from '@mui/material'; import ExpandMoreIcon from '@mui/icons-material/ExpandMore'; import Box from '@mui/material/Box'; import {Button} from "@mui/material"; import Checkbox from "@mui/material/Checkbox"; import FormControlLabel from "@mui/material/FormControlLabel"; export default function SendToControlNetPanel({options, onValueChange, setRendererImage, sendImage, setPreviewSize}) { const [selectedValue, setSelectedValue] = useState(''); const [sizeValue, setSizeValue] = useState('1:1'); const sizes = [ {label:"1:1", value:"1:1"}, {label:"2:3", value:"2:3"}, {label:"3:2", value:"3:2"} ]; return (