import { ReactNode } from "react";
import FrontendLayout from "@/app/(frontend)/FrontendLayout";
import Footer from "@/components/common/Footer";
import { getSiteSettings } from "@/lib/getSiteSettings";
import AboutFooterText from "@/components/frontend/pages/about/AboutFooterText";
import { getStudent } from "@/lib/studentAuth";

export default async function StudentAuthLayout({
  children,
}: {
  children: ReactNode;
}) {
  const siteSettings = await getSiteSettings();
  const student = await getStudent();

  return (
    <>
      <FrontendLayout siteSettings={siteSettings} student={student}>
        {children}
      </FrontendLayout>

      <Footer siteSettings={siteSettings}>
        <AboutFooterText />
      </Footer>
    </>
  );
}