import type {ReactNode} from "react";
import {AdminSideBar} from "./AdminSideBar.tsx";
import {AdminTopBar} from "./AdminTopBar.tsx";

type AdminLayoutProps = {
    children: ReactNode;
}

export function AdminLayout({children}: AdminLayoutProps) {
    return (
        <div className="wrap">
            <AdminSideBar/>

            <div className="container sub">
                <AdminTopBar/>
                <div className="content_wrap">
                    {children}
                </div>
            </div>
        </div>
    );
}