jbilcke-hf's picture
jbilcke-hf HF staff
experimental support for images
82d1e90
raw
history blame contribute delete
233 Bytes
import { useRef } from "react"
import { useStore } from "@/app/store"
export function useIsBusy() {
const isBusy = useStore(s => s.isBusy)
const busyRef = useRef(isBusy)
busyRef.current = isBusy
return {isBusy, busyRef }
}