'use client';

import { useRouter } from 'next/navigation';
import CheckoutSuccess from '../../../src/old-pages/CheckoutSuccess';

export default function CheckoutSuccessPage() {
  const router = useRouter();

  const handleNavigateHome = () => {
    router.push('/');
  };

  const handleNavigateCalculator = () => {
    router.push('/calculator');
  };

  return (
    <CheckoutSuccess
      onNavigateHome={handleNavigateHome}
      onNavigateCalculator={handleNavigateCalculator}
    />
  );
}
