"use client"; import { Search } from "lucide-react"; import Image from "next/image"; import Link from "next/link"; import { useEffect, useState } from "react"; import { Button } from "../ui/button"; import { usePathname } from "next/navigation"; export default function Navbar() { const [date, setDate] = useState(""); const pathname = usePathname(); // cek apakah sedang di halaman auth const isAuthPage = pathname.startsWith("/auth"); useEffect(() => { const today = new Date(); const options: Intl.DateTimeFormatOptions = { day: "numeric", month: "long", year: "numeric", }; const formattedDate = today.toLocaleDateString("id-ID", options); setDate(formattedDate); }, []); return (