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 ⭐️

412 B
Raw Blame
import {useMutation} from "@tanstack/react-query";
import {IdParam} from "../types.ts";
import {locationClient} from "../api/location.client.ts";

export const useResolveGeoPlace = () => {
    return useMutation({
        mutationFn: ({organizerId, placeId, locale}: {organizerId: IdParam; placeId: string; locale?: string}) =>
            locationClient.placeDetails(organizerId, placeId, {locale}),
    });
};