Skip to content
Snippets Groups Projects
useCustomPopup.tsx 307 B
Newer Older
  • Learn to ignore specific revisions
  • 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 }
    }