File size: 282 Bytes
3b81d2d
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
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
}