import type { Metadata } from "next";
import "@core/app/globals.css";
import Header from "@components/Header/Header";
import Footer from "@components/Footer/Footer";
import UserMenu from "@components/UserMenu/UserMenu";
import Loading from "@components/Loading/Loading";
import Alert from "@components/Alert/Alert";
import Confirm from "@components/Confirm/Confirm";
import TimePicker from "@components/TimePicker/TimePicker";
import TextObjectModal from "@components/TextObjectFilter/TextObjectModal";
import Filter from "@components/Filter/Filter";
import style from "./layout.module.css";
import HeaderConfProvider from "../components/HeaderConfProvider/HeaderConfProvider";
import CheckPendingInvitations from "../components/CheckPendingInvitations/CheckPendingInvitations";

export const metadata: Metadata = {
    title: "TurnosXpress",
    description: process.env.NEXT_PUBLIC_SLOGAN,
};

export default function AdminLayout({
    children,
}: Readonly<{
    children: React.ReactNode;
}>) {
    return (
        <div className={style.backgroundContent}>
            <Header />
            <HeaderConfProvider />
            {children}
            <Footer />
            <UserMenu />
            <Filter />
            <Loading />
            <Alert />
            <Confirm />
            <TimePicker />
            <TextObjectModal />
            <CheckPendingInvitations />
        </div>
    );
}
