Files
bio_frontend/composables/useSidebar.ts
2025-08-08 13:11:33 +09:00

10 lines
228 B
TypeScript

import { ref } from "vue";
export const useSidebar = () => {
const isSidebarOpen = ref(true);
const toggleSidebar = () => {
isSidebarOpen.value = !isSidebarOpen.value;
};
return { isSidebarOpen, toggleSidebar };
};