"use client" import YogaImageComponent from "@/components/yoga.image.component"; import clsx from "clsx"; import Link from "next/link"; export interface MenuItem { href?: string; label: string; children?: MenuItem[]; active?: boolean, styleClass?: string; } export interface Props { menuItems: MenuItem[]; imageSrc?: string; } const Nav = ({menuItems, imageSrc}: Props) => { return (
); } interface MenuItemProps { menuItem: MenuItem, dropdownItem?: boolean, } const MenuItemComponent = ({menuItem, dropdownItem}: MenuItemProps) => { if (!menuItem) { return (<>); } if (!menuItem.children || menuItem.children.length == 0) { return ( //
  • {menuItem.label}
  • ); } return (
  • ); } export default Nav;