"use client";
import * as React from "react";
import PublicFooter from "@/components/layout/PublicFooter";
import PublicHeader from "@/components/layout/PublicHeader";

export default function PublicShell({
  children,
  embedded = false,
  hideFooter = false,
  hideHeaderActions = false,
}: {
  children: React.ReactNode;
  embedded?: boolean;
  hideFooter?: boolean;
  hideHeaderActions?: boolean;
}) {
  return (
    <div className="flex min-h-screen flex-col bg-[linear-gradient(180deg,#ffffff_0%,#f5f8ff_28%,#eef4ff_58%,#ffffff_100%)] text-blue-950 transition-colors dark:bg-[linear-gradient(180deg,#0f1f4a_0%,#112d6e_35%,#0d1f4f_100%)] dark:text-slate-100">
      {embedded ? null : <PublicHeader hideActions={hideHeaderActions} />}
      <div className="flex flex-1 flex-col">{children}</div>
      {embedded || hideFooter ? null : <PublicFooter />}
    </div>
  );
}
