mirror of
https://github.com/storytold/artcraft.git
synced 2026-11-04 01:18:34 +00:00
@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>
13 lines
273 B
TypeScript
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: "",
|
|
});
|