import { useQuery } from '@tanstack/react-query';
import * as tradesApi from '../api/trades';

export function useTrades() {
  return useQuery({
    queryKey: ['trades'],
    queryFn: () => tradesApi.list(),
  });
}
