'use client';

import type { ReactNode } from "react";
import { usePathname } from "next/navigation";
import MenuSidebar from "./MenuSidebar";

export default function MenuLayout({ children }: { children: ReactNode }) {
  const pathname = usePathname();
  const isContinuePage = pathname?.includes('/continue');

  return (
    <div className="mx-auto flex w-full max-w-[1440px] min-h-screen">
      {!isContinuePage && (
        <aside className="w-[320px] border-r border-[#dee1e6] px-4 py-6">
          <MenuSidebar />
        </aside>
      )}
      <section className="flex-1">{children}</section>
    </div>
  );
}


