Spaces:
Runtime error
Runtime error
Download src/lib/useIsBusy.ts from WaledRashed24/comics: direct link, hf CLI and curl.
- Browser
- Download file 282 Bytes
-
https://huggingface.co/spaces/WaledRashed24/comics/resolve/main/src/lib/useIsBusy.ts
- Command line
-
hf download hf://spaces/WaledRashed24/comics/src/lib/useIsBusy.ts
-
curl -L -o useIsBusy.ts https://huggingface.co/spaces/WaledRashed24/comics/resolve/main/src/lib/useIsBusy.ts
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 | |
| } |