import * as React from 'react'; import Box from '@mui/material/Box'; import Button from '@mui/material/Button'; import List from '@mui/material/List'; import ListItemButton from '@mui/material/ListItemButton'; import ListItemText from '@mui/material/ListItemText'; import DialogTitle from '@mui/material/DialogTitle'; import DialogContent from '@mui/material/DialogContent'; import DialogActions from '@mui/material/DialogActions'; import Dialog from '@mui/material/Dialog'; import RadioGroup from '@mui/material/RadioGroup'; import Radio from '@mui/material/Radio'; import FormControlLabel from '@mui/material/FormControlLabel'; const options = [ 'None', 'Atria', 'Callisto', 'Dione', 'Ganymede', 'Hangouts Call', 'Luna', 'Oberon', 'Phobos', 'Pyxis', 'Sedna', 'Titania', 'Triton', 'Umbriel', ]; export interface ConfirmationDialogRawProps { id: string; keepMounted: boolean; value: string; open: boolean; onClose: (value?: string) => void; } function ConfirmationDialogRaw(props: ConfirmationDialogRawProps) { const { onClose, value: valueProp, open, ...other } = props; const [value, setValue] = React.useState(valueProp); const radioGroupRef = React.useRef(null); React.useEffect(() => { if (!open) { setValue(valueProp); } }, [valueProp, open]); const handleEntering = () => { if (radioGroupRef.current != null) { radioGroupRef.current.focus(); } }; const handleCancel = () => { onClose(); }; const handleOk = () => { onClose(value); }; const handleChange = (event: React.ChangeEvent) => { setValue((event.target as HTMLInputElement).value); }; return ( Phone Ringtone {options.map((option) => ( } label={option} /> ))} ); } export default function ConfirmationDialog() { const [open, setOpen] = React.useState(false); const [value, setValue] = React.useState('Dione'); const handleClickListItem = () => { setOpen(true); }; const handleClose = (newValue?: string) => { setOpen(false); if (newValue) { setValue(newValue); } }; return ( ); }