multipool-ta-fe/components/ui/navbar.tsx

27 lines
721 B
TypeScript
Raw Permalink Normal View History

2026-04-15 23:38:26 +00:00
"use client"
import { useMemo } from "react"
import { NotificationIcon, UserFillIcon } from "../icons"
import { getCookiesDecrypt } from "@/utils/globals"
export default function Navbar(props: { title: string }) {
const { title } = props
const username: string | null = useMemo(() => {
return getCookiesDecrypt("username")
}, [])
return (
2026-04-17 09:26:44 +00:00
<div className="flex flex-col gap-1 border border-violet-300 p-4">
<div className="flex flex-row items-center justify-between gap-2">
<p className="text-sm text-gray-500">{title}</p>
2026-04-15 23:38:26 +00:00
<a>
2026-04-17 09:26:44 +00:00
<NotificationIcon size={16} />
2026-04-15 23:38:26 +00:00
</a>
2026-04-17 09:26:44 +00:00
{/* <UserFillIcon size={36} />
<p>{username}</p> */}
2026-04-15 23:38:26 +00:00
</div>
</div>
)
}