|
@@ -0,0 +1,67 @@
|
|
1
|
+import * as React from 'react';
|
|
2
|
+import Box from '@mui/material/Box';
|
|
3
|
+import Drawer from '@mui/material/Drawer';
|
|
4
|
+import List from '@mui/material/List';
|
|
5
|
+import Divider from '@mui/material/Divider';
|
|
6
|
+import ListItem from '@mui/material/ListItem';
|
|
7
|
+import ListItemButton from '@mui/material/ListItemButton';
|
|
8
|
+import ListItemIcon from '@mui/material/ListItemIcon';
|
|
9
|
+import ListItemText from '@mui/material/ListItemText';
|
|
10
|
+import InboxIcon from '@mui/icons-material/MoveToInbox';
|
|
11
|
+import MailIcon from '@mui/icons-material/Mail';
|
|
12
|
+
|
|
13
|
+// import { MovilList } from './MovilList'
|
|
14
|
+let items = ['uno', 'dos', 'tres', 'cuatro', 'cinco','Inbox', 'Starred', 'Send email', 'Drafts','uno', 'dos', 'tres', 'cuatro', 'cinco','Inbox', 'Starred', 'Send email', 'Drafts']
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+export function MenuMovil(props) {
|
|
19
|
+
|
|
20
|
+ let { anchor } = props;
|
|
21
|
+
|
|
22
|
+ const list = (anchor) => (
|
|
23
|
+ <Box
|
|
24
|
+ sx={{ width: anchor === 'top' || anchor === 'bottom' ? 'auto' : 250 }}
|
|
25
|
+ role="presentation"
|
|
26
|
+ >
|
|
27
|
+ <List>
|
|
28
|
+ {items.map((text, index) => (
|
|
29
|
+ <ListItem key={text} disablePadding>
|
|
30
|
+ <ListItemButton>
|
|
31
|
+ <ListItemIcon>
|
|
32
|
+ {index % 2 === 0 ? <InboxIcon /> : <MailIcon />}
|
|
33
|
+ </ListItemIcon>
|
|
34
|
+ <ListItemText primary={text} />
|
|
35
|
+ </ListItemButton>
|
|
36
|
+ </ListItem>
|
|
37
|
+ ))}
|
|
38
|
+ </List>
|
|
39
|
+ <Divider />
|
|
40
|
+ <List>
|
|
41
|
+ {['All mail', 'Trash', 'Spam'].map((text, index) => (
|
|
42
|
+ <ListItem key={text} disablePadding>
|
|
43
|
+ <ListItemButton>
|
|
44
|
+ <ListItemIcon>
|
|
45
|
+ {index % 2 === 0 ? <InboxIcon /> : <MailIcon />}
|
|
46
|
+ </ListItemIcon>
|
|
47
|
+ <ListItemText primary={text} />
|
|
48
|
+ </ListItemButton>
|
|
49
|
+ </ListItem>
|
|
50
|
+ ))}
|
|
51
|
+ </List>
|
|
52
|
+ </Box>
|
|
53
|
+ );
|
|
54
|
+
|
|
55
|
+
|
|
56
|
+ return (
|
|
57
|
+ <div>
|
|
58
|
+ <React.Fragment >
|
|
59
|
+ <Drawer
|
|
60
|
+ anchor="left"
|
|
61
|
+ open={anchor} >
|
|
62
|
+ {list("left")}
|
|
63
|
+ </Drawer>
|
|
64
|
+ </React.Fragment>
|
|
65
|
+ </div>
|
|
66
|
+ );
|
|
67
|
+}
|