diff --git a/src/shared/Navigation/NavMobile.tsx b/src/shared/Navigation/NavMobile.tsx new file mode 100644 index 0000000..2794194 --- /dev/null +++ b/src/shared/Navigation/NavMobile.tsx @@ -0,0 +1,149 @@ +"use client"; + +import React from "react"; +import ButtonClose from "@/shared/ButtonClose"; +import Logo from "@/shared/Logo"; +import { Disclosure } from "@headlessui/react"; +import { NavItemType } from "./NavigationItem"; +import { NAVIGATION_DEMO } from "@/data/navigation"; +import ButtonPrimary from "@/shared/ButtonPrimary"; +import SocialsList from "@/shared/SocialsList"; +import { ChevronDownIcon } from "@heroicons/react/24/solid"; +import SwitchDarkMode from "@/shared/SwitchDarkMode"; +import Link from "next/link"; +import LangDropdown from "@/app/(client-components)/(Header)/LangDropdown"; + +export interface NavMobileProps { + data?: NavItemType[]; + onClickClose?: () => void; +} + +const NavMobile: React.FC = ({ + data = NAVIGATION_DEMO, + onClickClose, +}) => { + const _renderMenuChild = (item: NavItemType) => { + return ( + + ); + }; + + const _renderItem = (item: NavItemType, index: number) => { + return ( + + + + {item.name} + + {item.children && ( + e.preventDefault()}> + + + + )} + + {item.children && ( + {_renderMenuChild(item)} + )} + + ); + }; + + return ( +
+
+ +
+ + Discover the most outstanding articles on all topics of life. Write + your stories and share them + + +
+ + + + +
+
+ + + +
+ +
+ + Get Template + + + +
+
+ ); +}; + +export default NavMobile;