| 1 | import { createStore } from "/js/AlpineStore.js"; |
| 2 | |
| 3 | // define the model object holding data and functions |
| 4 | const model = { |
| 5 | connected: false, |
| 6 | progressActive: false, // true when progress bar is active |
| 7 | }; |
| 8 | |
| 9 | // convert it to alpine store |
| 10 | const store = createStore("chatTop", model); |
| 11 | |
| 12 | // export for use in other files |
| 13 | export { store }; |