diff --git a/.playground/composables/useChatSidebar.ts b/.playground/composables/useChatSidebar.ts new file mode 100644 index 0000000..8fd508b --- /dev/null +++ b/.playground/composables/useChatSidebar.ts @@ -0,0 +1,10 @@ +export const useChatSidebar = () => { + const isOpen = ref(false); + const toggle = () => { + isOpen.value = !isOpen.value; + }; + return { + isOpen, + toggle, + }; +}; \ No newline at end of file diff --git a/.playground/pages/index.vue b/.playground/pages/index.vue index a31fd26..ae59ec0 100644 --- a/.playground/pages/index.vue +++ b/.playground/pages/index.vue @@ -1,5 +1,5 @@