mirror of
https://github.com/storytold/artcraft.git
synced 2026-11-05 17:58:55 +00:00
Co-authored-by: Christopher Oliphant <RALifeCoach@users.noreply.github.com> Co-authored-by: Christopher Oliphant <christopheroliphant@christophersmbp.home> Co-authored-by: bflatastic <bombayapirat@gmail.com>
18 lines
495 B
TypeScript
18 lines
495 B
TypeScript
import { useSignals } from "@preact/signals-react/runtime";
|
|
import { loadingBarData, loadingBarIsShowing } from "~/signals";
|
|
|
|
import { LoadingBar } from "~/components";
|
|
export const EditorLoadingBar = () => {
|
|
useSignals();
|
|
return (
|
|
<LoadingBar
|
|
id="editor-loading-bar"
|
|
show={loadingBarIsShowing.value}
|
|
wrapperClassName="absolute top-0 left-0 z-[80]"
|
|
innerWrapperClassName="max-w-screen-sm"
|
|
hasSpinner
|
|
progressData={loadingBarData.value}
|
|
/>
|
|
);
|
|
};
|