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>
      <MobileView>
        <AppLayout title='Transaksi'>
          <TransactionsComponent />
        </AppLayout>
      </MobileView>

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