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 TransactionsComponent = dynamic(() => import('@/lib/transaction/components/Transactions'))

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

      <MobileView>
        <AppLayout title='Transaksi'>
          <TransactionsComponent context='transactions' />
        </AppLayout>
      </MobileView>

      <DesktopView>
        <BasicLayout>
          <TransactionsComponent context='transactions' />
        </BasicLayout>
      </DesktopView>
    </IsAuth>
  )
}
