import { useQuery } from '@tanstack/react-query';
import { fetchTools } from '../api';
import { STALE_TIME } from '../lib/constants.js';

export function useToolList() {
  return useQuery({ queryKey: ['tools'], queryFn: fetchTools, staleTime: STALE_TIME.STATIC });
}
