@ducor/react
Version:
admin template ui interface
24 lines (23 loc) • 943 B
TypeScript
import { TypographyLtr, TypographyRtl } from "../helpers/typographies";
export interface DataState {
HTML_DIRECTION: "ltr" | "rtl";
HEADER_LOCATION: "top" | "buttom" | "left" | "right";
HEADER_POSITION: "fixed" | "static";
SIDEBAR_LOCATION: "top" | "buttom" | "left" | "right";
SIDEBAR_POSITION: "fixed" | "static";
SIDEBAR_TYPE: "full" | "compact" | "mini";
SIDEBAR_SHOW: boolean;
SIDEBAR_RESIZER_ISACTIVE: boolean;
SIDEBAR_RESIZER_WIDTH: null | string;
OVER_WRITE_LAYOUT: boolean;
TYPOGRAPHY_LTR: TypographyLtr;
TYPOGRAPHY_RTL: TypographyRtl;
}
interface AdminContextType {
adminData: DataState;
setAdminData: (key: string, value: string | number | boolean | null) => void;
setLayout: (layoutName?: string | null) => void;
}
export declare const AdminContext: import("react").Context<AdminContextType | undefined>;
export declare const useAdmin: () => AdminContextType;
export {};