"use client";
import Link from "next/link";
import { Menu, X, Send, MessageCircle, FileText } from "lucide-react";
import { useEffect, useState } from "react";
import { usePathname } from "next/navigation";
type NavLink = {
href: string;
label: string;
};
export default function MobileMenu({
navLinks,
}: {
navLinks: NavLink[];
}) {
const [mobileOpen, setMobileOpen] = useState(false);
const pathname = usePathname();
useEffect(() => {
if (mobileOpen) {
document.body.style.overflow = "hidden";
document.documentElement.style.overflow = "hidden";
} else {
document.body.style.overflow = "";
document.documentElement.style.overflow = "";
}
return () => {
document.body.style.overflow = "";
document.documentElement.style.overflow = "";
};
}, [mobileOpen]);
return (
<>
{mobileOpen && (
WorkParking
Апгрейд дворовых шлагбаумов
setMobileOpen(false)}
className="mb-8 inline-flex w-full items-center justify-center gap-2 rounded-2xl bg-emerald-600 px-4 py-4 text-base font-semibold text-white hover:bg-emerald-500 transition-colors"
>
Оставить заявку
ООО «Пракфлоу» • ИНН 7777773333
)}
>
);
}