import { useState } from 'react';
// @mui
import { alpha } from '@mui/material/styles';
import { Box, MenuItem, Stack, IconButton, Popover } from '@mui/material';
// ----------------------------------------------------------------------
const LANGS = [
{
value: 'en',
label: 'English',
icon: './assets/icons/ic_flag_en.svg',
},
{
value: 'de',
label: 'German',
icon: './assets/icons/ic_flag_de.svg',
},
{
value: 'fr',
label: 'French',
icon: './assets/icons/ic_flag_fr.svg',
},
];
// ----------------------------------------------------------------------
export default function LanguagePopover() {
const [open, setOpen] = useState(null);
const handleOpen = (event) => {
setOpen(event.currentTarget);
};
const handleClose = () => {
setOpen(null);
};
return (
<>
alpha(theme.palette.primary.main, theme.palette.action.focusOpacity),
}),
}}
>
{LANGS.map((option) => (
))}
>
);
}