+
+
+
+
+
+
diff --git a/src/store/view-configs/webxr.ts b/src/store/view-configs/webxr.ts
new file mode 100644
index 000000000..0e9905b70
--- /dev/null
+++ b/src/store/view-configs/webxr.ts
@@ -0,0 +1,22 @@
+import { defineStore } from 'pinia';
+import { ref, Ref } from 'vue';
+import vtkWebXRRenderWindowHelper from '@kitware/vtk.js/Rendering/WebXR/RenderWindowHelper';
+
+export const useVTKWebXRStore = defineStore('vtkWebXR', () => {
+ const xrHelper = vtkWebXRRenderWindowHelper.newInstance();
+ const selectedXrSessionType : Ref<{title: string, value: number} | null> = ref(null);
+ const isXrSessionTypeLocked = ref(false);
+
+ function isXrSessionRunning() : Boolean {
+ return !!xrHelper.getXrSession();
+ }
+
+ return {
+ xrHelper,
+ selectedXrSessionType,
+ isXrSessionTypeLocked,
+ isXrSessionRunning
+ };
+});
+
+export default useVTKWebXRStore;