@ducor/react
Version:
admin template ui interface
10 lines (9 loc) • 372 B
TypeScript
import { SidebarContextType } from "../provider/sidebar";
/**
* Custom hook to manage sidebar state.
*
* @returns {SidebarContextType} An object containing sidebar state and functions to change the state.
* @throws Will throw an error if the hook is used outside of a SidebarProvider.
*/
declare const useSidebar: () => SidebarContextType;
export default useSidebar;