import { Typography, Stack, ToggleButtonGroup, ToggleButton } from '@mui/material'; import WindowsIcon from '@mui/icons-material/Window'; import AndroidIcon from '@mui/icons-material/Android'; import AppleIcon from '@mui/icons-material/Apple'; import CheckIcon from '@mui/icons-material/Check'; import { useState } from 'react'; export const ToggleButtonGroupView = () => { const [alignment, setAlignment] = useState('windows'); const handleAlignment = ( _event: React.MouseEvent, newAlignment: string | null, ) => { setAlignment(newAlignment); }; return ( Segmented Button {alignment === 'windows' ? : } Windows {alignment === 'android' ? : } Android {alignment === 'ios' ? : } Apple ); };