Newer
Older
import { useQuery } from '@tanstack/react-query'
import { fetchCustomPopup } from '../API'
import { queryKeys } from './query-keys'
export const useCustomPopup = () => {
const customPopup = useQuery({
queryKey: [queryKeys.customPopup],
queryFn: fetchCustomPopup,
})
return { customPopup }
}