import Link from 'next/link'; import { useState } from "react"; import { useRouter } from "next/router"; import { signOut, useSession } from 'next-auth/client'; import { MenuIcon, XIcon } from '@heroicons/react/outline'; export default function Shell(props) { const router = useRouter(); const [ session, loading ] = useSession(); const [ profileDropdownExpanded, setProfileDropdownExpanded ] = useState(false); const [ mobileMenuExpanded, setMobileMenuExpanded ] = useState(false); const toggleProfileDropdown = () => { setProfileDropdownExpanded(!profileDropdownExpanded); } const toggleMobileMenu = () => { setMobileMenuExpanded(!mobileMenuExpanded); } const logoutHandler = () => { signOut(); router.push('/'); } return (

{props.heading}

{props.children}
); }