import React from 'react'
import {ProfileSidebar} from "@/widgets/profile-sidebar/profile-sidebar";
import {SidebarProvider} from "@/shared/ui/sidebar";
import PrivateRoute from "@/shared/providers/PrivateRouteProvider";

const Layout = ({children}: Readonly<{ children: React.ReactNode }>) => {
  return (
      <PrivateRoute>
      <div className="my-12 min-h-screen">
        <div className="my-container section-wrapper">
          <SidebarProvider className={"gap-4 !min-h-auto"}>
            <ProfileSidebar/>
            {children}
          </SidebarProvider>
        </div>
      </div>
      </PrivateRoute>
  )
}
export default Layout
