import { cn } from '@/lib/utils' import Link from 'next/link' import { useCurrentUser } from '@/hooks/use-current-user' import { signOut } from 'next-auth/react' import Image from 'next/image' import { ModeToggle } from '@/components/mode-toggle' import { Logo } from '@/components/logo' const sidebarPages = [ { link: '/', title: 'Home' }, { link: '#profile', title: 'Profile' }, { link: '#purchases', title: 'Purchases' } ] const socials = [ { link: 'https://github.com/NizarAbiZaher', title: 'Github' }, { link: 'https://www.youtube.com/@NizzyABI', title: 'Youtube' }, { link: 'https://twitter.com/NizarAbiZaher', title: 'Twitter' }, { link: 'https://www.linkedin.com/in/nizarabizaher/', title: 'Tiktok' }, { link: 'https://www.instagram.com/nizarabizaher/', title: 'Instagram' }, { link: 'https://discord.gg/nizar', title: 'Discord' } ] interface SidebarProps { closeSidebar?: () => void } export const Sidebar = ({ closeSidebar }: SidebarProps) => { const session = useCurrentUser() const Logout = () => { signOut() } return (
{page.title}
{page.title}
Sign Up