@firecms/core
Version:
Awesome Firebase/Firestore-based headless open-source CMS
17 lines (16 loc) • 431 B
TypeScript
import React from "react";
/**
* This context represents the state of the app in terms of layout.
* @group Core
*/
export type AppState = {
hasDrawer: boolean;
drawerHovered: boolean;
drawerOpen: boolean;
openDrawer: () => void;
closeDrawer: () => void;
autoOpenDrawer?: boolean;
logo?: string;
};
export declare const AppContext: React.Context<AppState>;
export declare function useApp(): AppState;