mirror of
https://github.com/Bigherollc/wticreatorstudio.git
synced 2026-08-02 12:16:06 -04:00
15 lines
282 B
JavaScript
15 lines
282 B
JavaScript
import { ref } from "vue";
|
|
import { defineStore } from "pinia";
|
|
|
|
export const useLoader = defineStore('loader', () => {
|
|
const loading = ref(false);
|
|
|
|
function setLoader(state) {
|
|
loading.value = state;
|
|
}
|
|
|
|
return {
|
|
loading,
|
|
setLoader,
|
|
};
|
|
}); |