MCPcopy Create free account
hub / github.com/Detaysoft/react-chat-elements / NavbarExample

Function NavbarExample

example/components/NavbarExample.tsx:9–97  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

7import { photo } from '../utils/common'
8
9function NavbarExample() {
10 return (
11 <div style={{ width: '100%' }}>
12 <Navbar
13 className='navbar-height'
14 left={
15 <div className='navbar-text-overflow'>
16 <div className='navbar-header-container'>
17 <div
18 className='navbar-user-profile'
19 onClick={e => console.log(e)}
20 style={{ display: 'flex', alignItems: 'center' }}
21 >
22 <Avatar src={`data:image/png;base64,${photo(150)}`} size='small' type='circle flexible' />
23 <div
24 className='navbar-user-profile-container'
25 onClick={() => {}}
26 style={{
27 display: 'flex',
28 flexDirection: 'column',
29 alignItems: 'flex-start',
30 marginLeft: '0.5rem',
31 }}
32 >
33 <span className='title' style={{ paddingLeft: ' 0.2rem' }}>
34 Bilinmiyor
35 </span>
36 {
37 <span onClick={() => {}} className='user-location' style={{ fontSize: '10px', color: '#575757' }}>
38 <FaMapMarkerAlt color='#9e9e9e' />
39 Konum bilinmiyor
40 </span>
41 }
42 </div>
43 </div>
44 </div>
45 </div>
46 }
47 right={
48 <div className='chatlist-navbar-right'>
49 <div style={{ display: 'flex' }}>
50 <Button
51 className='navbar-button'
52 type='transparent'
53 title='Konferans başlat'
54 color='#5f5f5f'
55 onClick={() => {}}
56 icon={{
57 component: (
58 <div className='chat-list-navbar-menu-button'>
59 <FaVideo />
60 </div>
61 ),
62 size: 24,
63 }}
64 />
65 <div onClick={e => console.log(e)}>
66 <Dropdown

Callers

nothing calls this directly

Calls 1

photoFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…