"use client" import React, { useState } from 'react' import Image from 'next/image' import Link from 'next/link' import { FiChevronDown } from "react-icons/fi"; import { FaFacebookF, FaYoutube } from "react-icons/fa"; import { RiInstagramFill } from "react-icons/ri"; import { IoMenu, IoClose } from "react-icons/io5"; import { CoursesProps, SettingsProps } from '@/types' //define props type type Props = { openNav: () => void showNav: boolean courses: CoursesProps[] settings: SettingsProps } const Nav = ({ openNav, courses, showNav, settings }: Props) => { const [dropdownOpen, setDropdownOpen] = useState(false); return (