// ** React Imports import { useState } from 'react' // ** MUI Imports import List from '@mui/material/List' import Switch from '@mui/material/Switch' import ListItem from '@mui/material/ListItem' import ListItemText from '@mui/material/ListItemText' import ListItemIcon from '@mui/material/ListItemIcon' import ListSubheader from '@mui/material/ListSubheader' import ListItemSecondaryAction from '@mui/material/ListItemSecondaryAction' // ** Icon Imports import Icon from 'src/@core/components/icon' const ListWithSwitch = () => { // ** State const [checked, setChecked] = useState(['wifi', 'location']) const handleToggle = (value: string) => () => { const currentIndex = checked.indexOf(value) const newChecked = [...checked] if (currentIndex === -1) { newChecked.push(value) } else { newChecked.splice(currentIndex, 1) } setChecked(newChecked) } return ( Settings}> ) } export default ListWithSwitch