Skip to content

Open-source event management and ticket selling platform — perfect for concerts, conferences, and everything in between 🎟️ If you find this project helpful, please consider giving us a star ⭐️

403 B
Raw Blame
import {useMutation} from "@tanstack/react-query";
import {IdParam} from "../types.ts";
import {attendeesClient} from "../api/attendee.client.ts";

export const useResendAttendeeTicket = () => {
    return useMutation({
        mutationFn: ({eventId, attendeeId}: {
            eventId: IdParam;
            attendeeId: IdParam;
        }) => attendeesClient.resendTicket(eventId, attendeeId)
    });
}