import { useQuery } from "@tanstack/react-query";
import * as api from "../service/IconService";

export const useGetIconGroups = () => {
  return useQuery({
    queryKey: ["icon-groups"],
    queryFn: api.getIconGroups,
    staleTime: 5 * 60 * 1000,
  });
};
