import useApiFetchOrganization from "../../api/useApiFetchOrganization"

const useGetOrganization = (organizationId: any) => {
    const organizationResponse = useApiFetchOrganization(organizationId)

    const organization = organizationResponse.data


    return {
        organization,
        isLoading: organizationResponse.isLoading,
        error: organizationResponse.error,
        manualRefetch: organizationResponse.manualRefetch
    }
}

export default useGetOrganization