@krak-stack/registry 0.1.1 → 0.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -613,6 +613,10 @@ var sidebarOpenAtom = Atom.kvs({
|
|
|
613
613
|
schema: Schema.Boolean,
|
|
614
614
|
defaultValue: () => true
|
|
615
615
|
});
|
|
616
|
+
var useSidebarLayout = () => {
|
|
617
|
+
const { isMobile } = useSidebar();
|
|
618
|
+
return { isMobile };
|
|
619
|
+
};
|
|
616
620
|
function AppSidebar({ footer, groups, header }) {
|
|
617
621
|
const { isMobile, setOpenMobile } = useSidebar();
|
|
618
622
|
const pathname = useRouterState({
|
|
@@ -753,6 +757,7 @@ function SidebarLayout({
|
|
|
753
757
|
}, undefined, true, undefined, this);
|
|
754
758
|
}
|
|
755
759
|
export {
|
|
760
|
+
useSidebarLayout,
|
|
756
761
|
SidebarPageHeader,
|
|
757
762
|
SidebarLayout
|
|
758
763
|
};
|