2020-11-24 10:31:54 +01:00
|
|
|
import { writable } from "svelte/store"
|
|
|
|
|
|
|
|
const createBuilderStore = () => {
|
|
|
|
const initialState = {
|
|
|
|
inBuilder: false,
|
2020-11-27 17:36:31 +01:00
|
|
|
layout: null,
|
2020-11-24 10:31:54 +01:00
|
|
|
screen: null,
|
2020-11-30 13:11:50 +01:00
|
|
|
selectedComponentId: null,
|
|
|
|
previewId: null,
|
2020-11-24 10:31:54 +01:00
|
|
|
}
|
|
|
|
return writable(initialState)
|
|
|
|
}
|
|
|
|
|
|
|
|
export const builderStore = createBuilderStore()
|