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

export function useMarketRegime() {
  return useQuery({
    queryKey: ['market-regime'],
    queryFn: () => marketApi.getMarketRegime(),
    staleTime: 60_000,
  });
}

export function useBacktestReport() {
  return useQuery({
    queryKey: ['backtest-report'],
    queryFn: () => marketApi.getBacktestReport(),
    staleTime: 60_000,
  });
}
