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

export const useGetSiteSetting = (name: string) => {
  return useQuery({
    queryKey: ["site-setting", name],
    queryFn: () => api.getSiteSetting(name),
    enabled: !!name,
  });
};
