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 CreateAddressComponent from '@/lib/address/components/CreateAddress'
import IsAuth from '@/lib/auth/components/IsAuth'

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

      <MobileView>
        <AppLayout title='Tambah Alamat'>
          <CreateAddressComponent />
        </AppLayout>
      </MobileView>

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