import { useQuery } from '@tanstack/react-query';
import { memberApi } from '@/api';

/**
 * 멤버 목록 조회 훅
 */
export function useMembers() {
  return useQuery({
    queryKey: ['members'],
    queryFn: memberApi.getMembers,
    staleTime: 1000 * 60 * 10, // 10분 캐시
  });
}
