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/export/ExportButton.vue | 15 +++++++++++++++
 1 file changed, 15 insertions(+)
 create mode 100644 components/export/ExportButton.vue

(limited to 'components/export/ExportButton.vue')

diff --git a/components/export/ExportButton.vue b/components/export/ExportButton.vue
new file mode 100644
index 0000000..51c4b0a
--- /dev/null
+++ b/components/export/ExportButton.vue
@@ -0,0 +1,15 @@
+<script setup lang="ts">
+import type ExportModal from './ExportModal.vue';
+
+const exportModal = ref<InstanceType<typeof ExportModal> | null>(null);
+
+const openExportModal = async () => {
+  exportModal.value?.open();
+}
+</script>
+
+<template>
+  <Button type="solid" :icon="['fas', 'file-export']" label="Save / Export" @click="openExportModal" />
+
+  <ExportModal ref="exportModal" />
+</template>
\ No newline at end of file
-- 
cgit v1.2.3-70-g09d2

