From 825d2cadee4ddf34d0dde8c278fc8e8a99e95b95 Mon Sep 17 00:00:00 2001
From: Leonardo Bishop <me@leonardobishop.com>
Date: Wed, 13 Mar 2024 18:17:07 +0000
Subject: Add export modal

---
 components/header/SiteHeader.vue | 10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)

(limited to 'components/header/SiteHeader.vue')

diff --git a/components/header/SiteHeader.vue b/components/header/SiteHeader.vue
index afd85b8..22ee209 100644
--- a/components/header/SiteHeader.vue
+++ b/components/header/SiteHeader.vue
@@ -1,7 +1,11 @@
 <script setup land="ts">
+const session = useSessionStore();
+
 const navigateHome = () => {
   navigateTo('/');
 }
+
+const sessionType = computed(() => session.getSessionType());
 </script>
 
 <template>
@@ -14,8 +18,12 @@ const navigateHome = () => {
       <code>Preview</code>
     </div>
 
-    <div id="controls">
+    <div id="controls" v-if="sessionType === 'none'">
+      <LoaderImportButton :isPrimaryAction="true" />
+    </div>
+    <div id="controls" v-if="sessionType !== 'none'">
       <LoaderImportButton />
+      <ExportButton />
     </div>
   </header>
 </template>
-- 
cgit v1.2.3-70-g09d2

