"use client"; import Link from "next/link"; import { IdentityConsumer } from "@/components/auth/identity-gate"; import { MenuIcon } from "@/components/icons/menu"; import { SearchIcon } from "@/components/icons/search"; import { WalletIcon } from "@/components/icons/wallet"; import { Button, buttonVariants } from "@/components/ui/button"; import { Input } from "@/components/ui/input"; import { NETWORK_STATUS } from "@/lib/mock"; import { cn } from "@/lib/utils"; interface TopBarProps { onMenuClick: () => void; } export function TopBar({ onMenuClick }: TopBarProps) { return (
{NETWORK_STATUS.label} {(identity) => identity.isSignedIn ? ( {identity.label ?? "Account"} ) : ( <> Sign in Wallet ) }
); }