jbilcke-hf's picture
jbilcke-hf HF staff
update for oauth
3b81d2d
raw
history blame
282 Bytes
import { useStore } from "@/app/store"
export function useIsBusy() {
const isGeneratingStory = useStore(s => s.isGeneratingStory)
const atLeastOnePanelIsBusy = useStore(s => s.atLeastOnePanelIsBusy)
const isBusy = isGeneratingStory || atLeastOnePanelIsBusy
return isBusy
}