"use client" import React from 'react' import Link from 'next/link' import { GiRobotGrab } from "react-icons/gi"; import '@/app/components/Header.css' import Navbar from '@/app/components/Navbar' import Cookies from 'js-cookie'; const Header = () => { const [open, setOpen] = React.useState(false) const [loggedIn, setLoggedIn] = React.useState(false) React.useEffect(() => { Cookies.get('UserID') ? setLoggedIn(true) : setLoggedIn(false) }, []) function openNav() { setOpen(true) document.getElementById("mySidenav").style.width = "250px"; } return (