import { Outlet } from 'react-router'

import { AdminProvider } from '~/contexts/admin'
import { AdminDefaultLayout } from '~/layouts/admin/default'

const AdminLayout = () => {
  return (
    <AdminProvider>
      <AdminDefaultLayout>
        <Outlet />
      </AdminDefaultLayout>
    </AdminProvider>
  )
}

export default AdminLayout
