feat: favorite relays (#250)

This commit is contained in:
Cody Tseng
2025-04-05 15:31:34 +08:00
committed by GitHub
parent fab9ff88b5
commit c739d9d28c
63 changed files with 1081 additions and 982 deletions

View File

@@ -0,0 +1,25 @@
import { Button } from '@/components/ui/button'
import { DrawerClose } from '@/components/ui/drawer'
import { cn } from '@/lib/utils'
export default function DrawerMenuItem({
children,
className,
onClick
}: {
children: React.ReactNode
className?: string
onClick?: (e: React.MouseEvent) => void
}) {
return (
<DrawerClose className="w-full">
<Button
onClick={onClick}
className={cn('w-full p-6 justify-start text-lg gap-4 [&_svg]:size-5', className)}
variant="ghost"
>
{children}
</Button>
</DrawerClose>
)
}