-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDrawer.js
236 lines (228 loc) · 7.18 KB
/
Drawer.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
import * as React from "react";
import Box from "@mui/material/Box";
import {
IconButton,
List,
ListItem,
ListItemIcon,
ListItemText,
Typography,
Drawer,
Collapse,
useMediaQuery,
useTheme,
} from "@mui/material";
import MenuIcon from "@mui/icons-material/Menu";
import ChevronLeftIcon from "@mui/icons-material/ChevronLeft";
import HttpIcon from "@mui/icons-material/Http";
import ShoppingBasketIcon from "@mui/icons-material/ShoppingBasket";
import PatternIcon from "@mui/icons-material/Pattern";
import SendIcon from "@mui/icons-material/Send";
import ExpandMoreIcon from "@mui/icons-material/ExpandMore";
import HomeIcon from "@mui/icons-material/Home";
import AccountCircleIcon from "@mui/icons-material/AccountCircle";
import SettingsIcon from "@mui/icons-material/Settings";
import PeopleAltIcon from "@mui/icons-material/PeopleAlt";
import SmsIcon from "@mui/icons-material/Sms";
import AddIcon from "@mui/icons-material/Add";
import PhoneIcon from "@mui/icons-material/Phone";
import ChatIcon from "@mui/icons-material/Chat";
import InsertChartIcon from "@mui/icons-material/InsertChart";
import GroupAddIcon from "@mui/icons-material/GroupAdd";
import FolderSpecialIcon from "@mui/icons-material/FolderSpecial";
import ContentCopyIcon from "@mui/icons-material/ContentCopy";
import AssignmentIcon from "@mui/icons-material/Assignment";
import DescriptionIcon from "@mui/icons-material/Description";
const drawerWidth = 280;
export default function ItemsDrawer() {
const [open, setOpen] = React.useState(false);
const theme = useTheme();
const isMobileOrTablet = useMediaQuery(theme.breakpoints.down("md"));
const handleToggle = () => {
setOpen(!open);
};
const handleClose = () => {
setOpen(false);
};
return (
<Box sx={{ display: "flex" }}>
{isMobileOrTablet && (
<IconButton
onClick={handleToggle}
aria-label={open ? "Close Menu" : "Open Menu"}
color="primary"
size="medium"
sx={{ position: "absolute", left: 0, zIndex: 1 }}
>
{open ? <ChevronLeftIcon /> : <MenuIcon />}
</IconButton>
)}
<Drawer
sx={{
width: drawerWidth,
flexShrink: 0,
"& .MuiDrawer-paper": {
width: drawerWidth,
boxSizing: "border-box",
boxShadow: 12,
},
}}
variant={isMobileOrTablet ? "temporary" : "permanent"}
anchor="left"
open={open}
onClose={handleClose}
>
<Box sx={{ paddingTop: "20px", textAlign: "center" }}>
<IconButton
aria-label="contained"
color="primary"
size="medium"
sx={{ transform: "rotate(-40deg)" }}
>
<SendIcon sx={{ fontSize: 36 }} />
</IconButton>
<Typography variant="h5" noWrap sx={{ marginTop: "10px" }}>
Telegram <br /> Expert
</Typography>
</Box>
<List>
<ListItem button onClick={handleToggle}>
<ListItemIcon>
<HomeIcon />
</ListItemIcon>
<ListItemText primary="Home" />
<ExpandMoreIcon />
</ListItem>
<Collapse in={open} timeout="auto" unmountOnExit>
<List component="div" disablePadding>
{/* Submenu items can go here */}
</List>
</Collapse>
<ListItem button>
<ListItemIcon>
<AccountCircleIcon />
</ListItemIcon>
<ListItemText primary="Pannel account" />
<ExpandMoreIcon />
</ListItem>
<ListItem button>
<ListItemIcon>
<SettingsIcon />
</ListItemIcon>
<ListItemText primary="Account action" />
<ExpandMoreIcon />
</ListItem>
<ListItem button>
<ListItemIcon>
<PeopleAltIcon />
</ListItemIcon>
<ListItemText primary="Gathering audience" />
<ExpandMoreIcon />
</ListItem>
<ListItem button>
<ListItemIcon>
<SmsIcon />
</ListItemIcon>
<ListItemText primary="Sending SMS" />
<ExpandMoreIcon />
</ListItem>
<ListItem button>
<ListItemIcon>
<AddIcon />
</ListItemIcon>
<ListItemText primary="Invite" />
<ExpandMoreIcon />
</ListItem>
<ListItem button>
<ListItemIcon>
<PhoneIcon />
</ListItemIcon>
<ListItemText primary="Phone numbers" />
<ExpandMoreIcon />
</ListItem>
<ListItem button>
<ListItemIcon>
<ChatIcon />
</ListItemIcon>
<ListItemText primary="Chat" />
<ExpandMoreIcon />
</ListItem>
<ListItem button>
<ListItemIcon>
<InsertChartIcon />
</ListItemIcon>
<ListItemText primary="Interplot" />
<ExpandMoreIcon />
</ListItem>
<ListItem button>
<ListItemIcon>
<GroupAddIcon />
</ListItemIcon>
<ListItemText primary="Create chats" />
<ExpandMoreIcon />
</ListItem>
<ListItem button>
<ListItemIcon>
<FolderSpecialIcon />
</ListItemIcon>
<ListItemText primary="Special modules" />
<ExpandMoreIcon />
</ListItem>
<ListItem button>
<ListItemIcon>
<ContentCopyIcon />
</ListItemIcon>
<ListItemText primary="Cloner" />
<ExpandMoreIcon />
</ListItem>
<ListItem button>
<ListItemIcon>
<AssignmentIcon />
</ListItemIcon>
<ListItemText primary="Reporter" />
<ExpandMoreIcon />
</ListItem>
<ListItem button>
<ListItemIcon>
<DescriptionIcon />
</ListItemIcon>
<ListItemText primary="Reports" />
<ExpandMoreIcon />
</ListItem>
<Box sx={{ marginTop: "20px" }}>
<ListItem button>
<ListItemIcon>
<ShoppingBasketIcon />
</ListItemIcon>
<ListItemText primary="Buy Accounts" />
<ExpandMoreIcon />
</ListItem>
<ListItem button>
<ListItemIcon>
<PatternIcon />
</ListItemIcon>
<ListItemText primary="Proxy Patterns" />
<ExpandMoreIcon />
</ListItem>
</Box>
<Box sx={{ marginTop: "20px" }}>
<ListItem button>
<ListItemIcon>
<SettingsIcon />
</ListItemIcon>
<ListItemText primary="Settings" />
<ExpandMoreIcon />
</ListItem>
<ListItem button>
<ListItemIcon>
<HttpIcon />
</ListItemIcon>
<ListItemText primary="Proxy" />
<ExpandMoreIcon />
</ListItem>
</Box>
</List>
</Drawer>
</Box>
);
}