import { ReactNode } from "react";
import { Metadata } from "next";
import { InternalLayout } from "./_components/InternalLayout";

export const metadata: Metadata = {
  title: "Link",
};

type LayoutProps = {
  children: ReactNode;
};

export default function Layout({ children }: LayoutProps) {
  const setupModeActive = process.env.SETUP_MODE === "true";
  const leafcutterEnabled = process.env.LEAFCUTTER_ENABLED === "true";

  return (
    <InternalLayout
      setupModeActive={setupModeActive}
      leafcutterEnabled={leafcutterEnabled}
    >
      {children}
    </InternalLayout>
  );
}
