import useApiFetchLocation from "../../api/useApiFetchLocation"

const useGetLocation = (locationId: any) => {
    const locationResponse = useApiFetchLocation(locationId)

    const location = locationResponse.data


    return {
        location,
        isLoading: locationResponse.isLoading,
        error: locationResponse.error,
        manualRefetch: locationResponse.manualRefetch
    }
}

export default useGetLocation