From 50a0f0240d7fef133eb5acc1bea2b1168b08e9db Mon Sep 17 00:00:00 2001 From: Factiven Date: Sun, 24 Dec 2023 13:03:54 +0700 Subject: migrate to typescript --- components/shared/MobileNav.js | 170 ----------------------------------------- 1 file changed, 170 deletions(-) delete mode 100644 components/shared/MobileNav.js (limited to 'components/shared/MobileNav.js') diff --git a/components/shared/MobileNav.js b/components/shared/MobileNav.js deleted file mode 100644 index d0f29c2..0000000 --- a/components/shared/MobileNav.js +++ /dev/null @@ -1,170 +0,0 @@ -import { MagnifyingGlassIcon } from "@heroicons/react/20/solid"; -import { CalendarIcon, HomeIcon } from "@heroicons/react/24/outline"; -import { signIn, signOut, useSession } from "next-auth/react"; -import Image from "next/image"; -import Link from "next/link"; -import { useState } from "react"; - -export default function MobileNav({ hideProfile = false }) { - const { data: sessions } = useSession(); - const [isVisible, setIsVisible] = useState(false); - - const handleShowClick = () => { - setIsVisible(true); - }; - - const handleHideClick = () => { - setIsVisible(false); - }; - return ( - <> - {/* NAVBAR */} -
- {!isVisible && ( - - )} -
- - {/* Mobile Menu */} -
- {isVisible && sessions && !hideProfile && ( - - user avatar - - )} - {isVisible && ( -
-
- - - - {sessions ? ( - - ) : ( - - )} -
- -
- )} -
- - ); -} -- cgit v1.2.3