11"use client" ;
22
3- import { ArrowUpRight } from "lucide-react" ;
3+ import { ArrowUpRight , ChevronDown } from "lucide-react" ;
44
55import ChainDisplay from "@/components/chain-display" ;
66import { buttonVariants } from "@/components/ui/button" ;
@@ -17,6 +17,12 @@ import {
1717 TooltipTrigger ,
1818} from "@/components/ui/tooltip" ;
1919import { useMediaQuery } from "@/hooks/use-media-query" ;
20+ import {
21+ DropdownMenu ,
22+ DropdownMenuContent ,
23+ DropdownMenuTrigger ,
24+ DropdownMenuItem ,
25+ } from "../ui/dropdown-menu" ;
2026
2127const Navbar = ( ) => {
2228 const currentPath = usePathname ( ) ;
@@ -57,17 +63,64 @@ const Navbar = () => {
5763 >
5864 < span className = "hover:underline" > Explore</ span >
5965 </ Link >
60- < Link
61- key = { siteConfig . links . createHypercert }
62- href = { siteConfig . links . createHypercert }
63- className = { `${ buttonVariants ( { variant : "link" } ) } text-lg ${
64- currentPath === siteConfig . links . createHypercert
65- ? "opacity-1 font-semibold hover:opacity-100"
66- : "opacity-70 hover:opacity-100"
67- } `}
68- >
69- < span className = "hover:underline" > Create</ span >
70- </ Link >
66+
67+ < DropdownMenu >
68+ < DropdownMenuTrigger className = "outline-none" >
69+ < span
70+ className = { `${ buttonVariants ( { variant : "link" } ) } text-lg ${
71+ currentPath === siteConfig . links . createHypercert
72+ ? "opacity-1 font-semibold hover:opacity-100"
73+ : "opacity-70 hover:opacity-100"
74+ } text-sm opacity-70 hover:opacity-100`}
75+ >
76+ Create < ChevronDown size = { 16 } className = "ml-2" />
77+ </ span >
78+ </ DropdownMenuTrigger >
79+ < DropdownMenuContent
80+ align = "start"
81+ className = "flex flex-col items-start"
82+ >
83+ < DropdownMenuItem asChild >
84+ < Link
85+ key = { siteConfig . links . createHypercert }
86+ href = { siteConfig . links . createHypercert }
87+ className = { `${ buttonVariants ( { variant : "link" } ) } text-lg ${
88+ currentPath === siteConfig . links . createHypercert
89+ ? "opacity-1 font-semibold hover:opacity-100"
90+ : "opacity-70 hover:opacity-100"
91+ } `}
92+ >
93+ < span className = "hover:underline" > New Hypercert</ span >
94+ </ Link >
95+ </ DropdownMenuItem >
96+ < DropdownMenuItem asChild >
97+ < Link
98+ key = { siteConfig . links . createCollection }
99+ href = { siteConfig . links . createCollection }
100+ className = { `${ buttonVariants ( { variant : "link" } ) } text-lg ${
101+ currentPath === siteConfig . links . createCollection
102+ ? "opacity-1 font-semibold hover:opacity-100"
103+ : "opacity-70 hover:opacity-100"
104+ } `}
105+ >
106+ < span className = "hover:underline" > New Collection</ span >
107+ </ Link >
108+ </ DropdownMenuItem >
109+ < DropdownMenuItem asChild >
110+ < Link
111+ key = { siteConfig . links . createBlueprint }
112+ href = { siteConfig . links . createBlueprint }
113+ className = { `${ buttonVariants ( { variant : "link" } ) } text-lg ${
114+ currentPath === siteConfig . links . createBlueprint
115+ ? "opacity-1 font-semibold hover:opacity-100"
116+ : "opacity-70 hover:opacity-100"
117+ } `}
118+ >
119+ < span className = "hover:underline" > New Blueprint</ span >
120+ </ Link >
121+ </ DropdownMenuItem >
122+ </ DropdownMenuContent >
123+ </ DropdownMenu >
71124
72125 { address ? (
73126 < Link
0 commit comments