From a072c91cc0dc26e417c51f666e8547e08ef40942 Mon Sep 17 00:00:00 2001
From: Leonardo Bishop <me@leonardobishop.com>
Date: Tue, 12 Mar 2024 23:18:23 +0000
Subject: Add import from file system

---
 components/loader/LoaderTestDataButton.vue | 17 +++++++++++++++++
 1 file changed, 17 insertions(+)
 create mode 100644 components/loader/LoaderTestDataButton.vue

(limited to 'components/loader/LoaderTestDataButton.vue')

diff --git a/components/loader/LoaderTestDataButton.vue b/components/loader/LoaderTestDataButton.vue
new file mode 100644
index 0000000..b01b0ee
--- /dev/null
+++ b/components/loader/LoaderTestDataButton.vue
@@ -0,0 +1,17 @@
+<script setup lang="ts">
+import type LoaderTestDataModal from './LoaderTestDataModal.vue';
+
+const testDataModal = ref<InstanceType<typeof LoaderTestDataModal> | null>(null);
+
+const openTestDataModal = async () => {
+  testDataModal.value?.open();
+}
+</script>
+
+<template>
+  <ClientOnly>
+    <Button :icon="['fas', 'flask-vial']" label="Demo" @click="openTestDataModal" />
+
+    <LoaderTestDataModal ref="testDataModal" />
+  </ClientOnly>
+</template>
\ No newline at end of file
-- 
cgit v1.2.3-70-g09d2

