import BackToPortfolio from "@/app/components/portfolio/BackToPortfolio";

export default async function Layout(
  props: {
    children: React.ReactNode;
    params: Promise<{ slug: string; lmkKey: string }>;
  }
) {
  const params = await props.params;

  const {
    children
  } = props;

  const portfolioId = params.slug;

  return (
    <section>
      <div className="mt-2">
        <BackToPortfolio portfolioId={portfolioId} />
      </div>

      {children}
    </section>
  );
}
