Files
artcraft/app/signals/loadingBar.ts
T
wilandwil e4ac69af64 Fix/ Loading Bar can not have signals (#590)
@bflatastic please be mindful that all the components in the reusable
folder are/could-be/should-be reused in different components, which
means, if a signal is needed, their parent component has to load that
signal and pass it on to them, otherwise the component wont be reusable
anymore

Co-authored-by: wil <wil@storyteller.ai>
2024-07-08 19:03:25 -04:00

13 lines
273 B
TypeScript

import { signal } from "@preact/signals-core";
export const loadingBarIsShowing = signal(true);
export const loadingBarData = signal<{
label: string;
message: string;
progress: number;
}>({
label: "Loading Editor Engine... 🦊",
progress: 5,
message: "",
});