MCPcopy Create free account
hub / github.com/SeleniumHQ/selenium / NavBar

Function NavBar

javascript/grid-ui/src/components/NavBar/NavBar.tsx:117–176  ·  view source on GitHub ↗
(props)

Source from the content-addressed store, hash-verified

115}
116
117function NavBar (props) {
118 const {
119 open,
120 maxSession,
121 sessionCount,
122 nodeCount,
123 sessionQueueSize
124 } = props
125
126 return (
127 <Drawer
128 variant='permanent'
129 open={open}
130 >
131 <Box
132 display='flex'
133 alignItems='center'
134 justifyContent='flex-end'
135 sx={{ bgcolor: 'primary.main' }}
136 marginTop={2}
137 >
138 <IconButton color='secondary' size='large'>
139 <ChevronLeftIcon />
140 </IconButton>
141 </Box>
142 <Divider />
143 <List>
144 <div>
145 <ListItemLink href='#'>
146 <ListItemIcon>
147 <DashboardIcon />
148 </ListItemIcon>
149 <ListItemText primary='Overview' />
150 </ListItemLink>
151 <ListItemLink href='#/sessions'>
152 <ListItemIcon>
153 <AssessmentIcon />
154 </ListItemIcon>
155 <ListItemText primary='Sessions' />
156 </ListItemLink>
157 <ListItemLink href='#/help'>
158 <ListItemIcon>
159 <HelpIcon />
160 </ListItemIcon>
161 <ListItemText primary='Help' />
162 </ListItemLink>
163 </div>
164 </List>
165 <Box flexGrow={1} />
166 {open && (
167 <NavBarBottom
168 sessionQueueSize={sessionQueueSize}
169 sessionCount={sessionCount}
170 maxSession={maxSession}
171 nodeCount={nodeCount}
172 />
173 )}
174 </Drawer>

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected