"use client" import React, {useState} from 'react' import MobileNav from './MobileNav' import Nav from './Nav' import { CoursesProps,SettingsProps } from '@/types' const ResponsiveNav = ({ courses, settings }: { courses: CoursesProps[], settings: SettingsProps }) => { const [showNav, setShowNav] = useState(false) const toggleNavHandler = () => setShowNav(!showNav) return (