import Announcement from '@/components/announcement';
import { SidebarInset, SidebarProvider } from '@workspace/ui/components/sidebar';
import { cookies } from 'next/headers';
import { SidebarLeft } from './sidebar-left';

export default async function DashboardLayout({ children }: { children: React.ReactNode }) {
  return (
    <SidebarProvider className='container'>
      <SidebarLeft className='sticky w-[288px] border-r-0 bg-transparent lg:flex' />
      <SidebarInset className='relative p-4'>{children}</SidebarInset>
      {/*<SidebarRight className='sticky top-[84px] hidden w-[288px] border-r-0 bg-transparent 2xl:flex' />*/}
      <Announcement type='popup' Authorization={(await cookies()).get('Authorization')?.value} />
    </SidebarProvider>
  );
}
