setOpen(false)}
anchorEl={itemRef.current}
container={itemRef.current}
anchorOrigin={orientationProps.anchorOrigin}
transformOrigin={orientationProps.transformOrigin}
PaperProps={{
onMouseLeave: () => !props.configuration.useClickToClose && setOpen(false),
square: true,
}}
sx={{
zIndex: props.configuration.useClickToClose ? '1' : '-1',
}}
elevation={props.elevation}
>
e.stopPropagation()}>
{props.configuration.options?.map((o, i) => {
if (!o?.render) {
return (
);
} else {
return {o.render(() => setOpen(false))};
}
})}