import Link from "../Link/Link" import greeting from "@/core/utils/greeting" import { Cog6ToothIcon } from "@heroicons/react/24/solid" import useAuth from "@/core/hooks/useAuth" import { AnimatePresence, motion } from "framer-motion" const Sidebar = ({ active, close }) => { const auth = useAuth() const SidebarLink = ({ children, ...props }) => ( { children } ) const itemClassName = 'px-4 py-3 block !text-gray_r-12/80 font-normal' const transition = { ease: 'linear', duration: 0.2 } return ( <> { active && ( <> { !auth && ( <> Daftar Masuk > ) } { auth && ( <> { greeting() }, { auth?.name } > ) } Semua Brand Tentang Indoteknik Pusat Bantuan Kategori > ) } > ) } export default Sidebar