'use client'
import { Dialog, Transition } from '@headlessui/react'
import { disableBodyScroll, enableBodyScroll, clearAllBodyScrollLocks } from 'body-scroll-lock'
import { Fragment, useState, useEffect, useRef } from 'react'
import Link from './Link'
import headerNavLinks from '@/data/headerNavLinks'
const MobileNav = () => {
const [navShow, setNavShow] = useState(false)
const navRef = useRef(null)
const onToggleNav = () => {
setNavShow((status) => {
if (status) {
enableBodyScroll(navRef.current)
} else {
// Prevent scrolling
disableBodyScroll(navRef.current)
}
return !status
})
}
useEffect(() => {
return clearAllBodyScrollLocks
})
return (
<>
>
)
}
export default MobileNav