feat: introducing self hosted admin dashboard package (#12)
Co-authored-by: Andrew Bastin <andrewbastin.k@gmail.com> Co-authored-by: Anwarul Islam <anwaarulislaam@gmail.com>
This commit is contained in:
committed by
GitHub
parent
2ba05a46ee
commit
3f59597864
13
packages/hoppscotch-sh-admin/src/composables/useSidebar.ts
Normal file
13
packages/hoppscotch-sh-admin/src/composables/useSidebar.ts
Normal file
@@ -0,0 +1,13 @@
|
||||
import { ref } from 'vue';
|
||||
|
||||
/** isOpen is used to indicate whether the sidebar is now visible on the screen */
|
||||
const isOpen = ref(false);
|
||||
/** isExpanded is used to indicate whether the sidebar is now expanded to also include page names or the sidebar is compressed to show just the icons */
|
||||
const isExpanded = ref(true);
|
||||
|
||||
export function useSidebar() {
|
||||
return {
|
||||
isOpen,
|
||||
isExpanded,
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user