import Seo from '@/core/components/Seo'
import AppLayout from '@/core/components/layouts/AppLayout'
import BasicLayout from '@/core/components/layouts/BasicLayout'
import DesktopView from '@/core/components/views/DesktopView'
import MobileView from '@/core/components/views/MobileView'
import IsAuth from '@/lib/auth/components/IsAuth'
import dynamic from 'next/dynamic'

const ShipmentsComponent = dynamic(() => import('@/lib/shipment/components/Shipments'))

export default function MyShipments() {
  return (
    <IsAuth>
      <Seo title='Shipments - Indoteknik.com' />

      <MobileView>
        <AppLayout title='Pengiriman'>
          <ShipmentsComponent />
        </AppLayout>
      </MobileView>

      <DesktopView>
        <BasicLayout>
          <ShipmentsComponent />
        </BasicLayout>
      </DesktopView>
    </IsAuth>
  )
}
