import BasicLayout from '@/core/components/layouts/BasicLayout'
import IsAuth from '@/lib/auth/components/IsAuth'
import FinishCheckoutComponent from '@/lib/checkout/components/FinishCheckout'
import { useRouter } from 'next/router'

export default function Finish() {
  const router = useRouter()

  return (
    <IsAuth>
      <BasicLayout>
        <FinishCheckoutComponent query={router.query || {}} />
      </BasicLayout>
    </IsAuth>
  )
}
