summaryrefslogtreecommitdiff
path: root/src/pages/daftar-merchant.jsx
blob: c224ed0df688ebbb3dfe589ae78ec35b3a7ce0dc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
import Seo from '@/core/components/Seo';
import BasicLayout from '@/core/components/layouts/BasicLayout';
import CreateMerchant from '@/lib/form/components/Merchant';
import ErrorMerchant from '@/lib/form/components/AccountSwitch';
import useAuth from '@/core/hooks/useAuth';
import { useRouter } from 'next/router';
export default function DaftarMerchant() {
  const router = useRouter();
  const auth = useAuth();
  return (
    <>
      <Seo title='Daftar Merchant - Indoteknik.com' />

      <BasicLayout>
        {auth?.company ? <CreateMerchant></CreateMerchant> : <ErrorMerchant />}
      </BasicLayout>
    </>
  );
}