import { useAuthStore } from "../store/authStore";

export function useIsSuperuser(): boolean {
  const user = useAuthStore((state) => state.user);
  return Boolean(user?.role === "admin" && user?.is_superuser);
}
