Newer
Older
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
import {
Avatar,
Dropdown,
DropdownItem,
DropdownMenu,
DropdownTrigger,
NavbarItem,
} from "@nextui-org/react";
// import { DarkModeSwitch } from "./darkmodeswitch";
export const UserDropdown = () => {
return (
<Dropdown>
<NavbarItem>
<DropdownTrigger>
<Avatar
as="button"
color="secondary"
size="md"
src="https://i.pravatar.cc/150?u=a042581f4e29026704d"
/>
</DropdownTrigger>
</NavbarItem>
<DropdownMenu
aria-label="User menu actions"
onAction={(actionKey) => console.log({ actionKey })}
>
<DropdownItem
key="profile"
className="flex flex-col justify-start w-full items-start"
>
<p>Signed in as</p>
<p>zoey@example.com</p>
</DropdownItem>
<DropdownItem key="settings">My Settings</DropdownItem>
<DropdownItem key="team_settings">Team Settings</DropdownItem>
<DropdownItem key="analytics">Analytics</DropdownItem>
<DropdownItem key="system">System</DropdownItem>
<DropdownItem key="configurations">Configurations</DropdownItem>
<DropdownItem key="help_and_feedback">Help & Feedback</DropdownItem>
<DropdownItem key="logout" color="danger" className="text-danger ">
Log Out
</DropdownItem>
<DropdownItem key="switch">
{/* <DarkModeSwitch /> */}
switch
</DropdownItem>
</DropdownMenu>
</Dropdown>
);
};