'use client';

import Checkout from '@/components/Checkout';
import { useRouter } from 'next/navigation';

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

    return (
        <Checkout
            onComplete={() => router.push('/dashboard')}
            onCancel={() => router.push('/pricing')}
        />
    );
}
