+
+
+ {items.map(({ icon, title, description }, index) => (
+ handleItemClick(index)}
+ sx={[
+ (theme) => ({
+ p: 8,
+ height: '100%',
+ width: '100%',
+ '&:hover': {
+ backgroundColor: mode === 'dark'
+ ? 'rgba(133, 113, 255, 0.1)'
+ : (theme.vars || theme).palette.action.hover,
+ },
+ }),
+ selectedItemIndex === index && {
+ backgroundColor: (theme) => (mode === 'dark' ? 'rgba(133, 113, 255, 0.1)' : theme.palette.action.selected),
+ },
+ ]}
+ >
+
+ {icon}
+
+ {title}
+ {description}
+
+
+ ))}
+
+
+
+
+
+
+
+
+
+
+
+
+