'use client'

import { createContext, useContext } from 'react'

interface Menu {
  menu: boolean
  setMenu: React.Dispatch<React.SetStateAction<boolean>>
}

const MenuContext = createContext<Menu>({
  menu: false,
  setMenu: () => false,
})

export const useMenu = () => useContext(MenuContext)

export const MenuProvider = MenuContext.Provider
