forked from langfuse/langfuse-docs
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathLogoContextMenu.tsx
More file actions
51 lines (49 loc) · 1.33 KB
/
LogoContextMenu.tsx
File metadata and controls
51 lines (49 loc) · 1.33 KB
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 {
DropdownMenuContent,
DropdownMenuTrigger,
DropdownMenu,
DropdownMenuItem,
DropdownMenuSeparator,
} from "./ui/dropdown-menu";
import { Download, ExternalLink } from "lucide-react";
const LogoContextMenu: React.FC<{
open: boolean;
setOpen: (open: boolean) => void;
}> = ({ open, setOpen }) => {
return (
<DropdownMenu open={open} onOpenChange={setOpen} modal={false}>
<DropdownMenuTrigger />
<DropdownMenuContent>
<DropdownMenuItem
onClick={(e) => {
e.preventDefault();
window.open("/", "_blank");
}}
>
<ExternalLink size={14} className="mr-2" />
Open in new tab
</DropdownMenuItem>
<DropdownMenuSeparator />
<DropdownMenuItem
onClick={(e) => {
e.preventDefault();
window.open("/langfuse_logo.png", "_blank");
}}
>
<Download size={14} className="mr-2" />
Logo (png)
</DropdownMenuItem>
<DropdownMenuItem
onClick={(e) => {
e.preventDefault();
window.open("/langfuse_logo.svg", "_blank");
}}
>
<Download size={14} className="mr-2" />
Logo (svg)
</DropdownMenuItem>
</DropdownMenuContent>
</DropdownMenu>
);
};
export default LogoContextMenu;