init source
This commit is contained in:
9
composables/useSidebar.ts
Normal file
9
composables/useSidebar.ts
Normal file
@@ -0,0 +1,9 @@
|
||||
import { ref } from "vue";
|
||||
|
||||
export const useSidebar = () => {
|
||||
const isSidebarOpen = ref(true);
|
||||
const toggleSidebar = () => {
|
||||
isSidebarOpen.value = !isSidebarOpen.value;
|
||||
};
|
||||
return { isSidebarOpen, toggleSidebar };
|
||||
};
|
Reference in New Issue
Block a user