import { useEffect, useState } from 'react' import { useAuth } from '../context/auth_context' import catchErrors from '../utils/catchErrors' import reservationApi from '../apis/reservation.api' const PaymentCompletePage = () => { const [error, setError] = useState() useEffect(() => { deleteReservation() }, []) async function deleteReservation() { try { const response = await reservationApi.deleteReservation() localStorage.removeItem('tid') } catch (error) { catchErrors(error, setError) } } return (
) } export default PaymentCompletePage