import { UnsavedWarnProvider } from "@/lib/hooks";
import { cn } from "@/lib/utils";
import { PropsWithChildren } from "react";

export const Layout = ({
  className,
  children,
}: PropsWithChildren<{
  className?: string;
}>) => (
  <UnsavedWarnProvider>
    <div className={cn("flex flex-col w-full min-h-screen", className)}>{children}</div>
  </UnsavedWarnProvider>
);

Layout.displayName = "Layout";
