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 InvoicesComponent from '@/lib/invoice/components/Invoices'

export default function Invoices() {
  return (
    <IsAuth>
      <MobileView>
        <AppLayout title='Invoice & Faktur Pajak'>
          <InvoicesComponent />
        </AppLayout>
      </MobileView>

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