import { useQuery } from '@tanstack/react-query'
import { getTests } from '../lib/api'

export function useTests(filters = {}) {
  return useQuery({
    queryKey: ['tests', filters],
    queryFn: () => getTests(filters),
    keepPreviousData: true,
  })
}
