import { getSiteSettings } from "@/lib/getSiteSettings";
import FrontendLayout from "./FrontendLayout";
import { getStudent } from "@/lib/studentAuth";

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

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