summaryrefslogtreecommitdiff
path: root/src/pages/shop/cart.jsx
blob: a7f2037b4a674c3c1899e3ce70a61138967ffdcb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
import Seo from '@/core/components/Seo'
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 AppLayout = dynamic(() => import('@/core/components/layouts/AppLayout'))
const CartComponent = dynamic(() => import('@/lib/cart/components/Cart'))

export default function Cart() {
  return (
    <>
      <Seo title='Keranjang Belanja Indoteknik.com' />

      <IsAuth>
        <MobileView>
          <AppLayout title='Keranjang' withFooter={false}>
            <CartComponent />
          </AppLayout>
        </MobileView>

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