infinity-forge
Version:
28 lines (27 loc) • 953 B
TypeScript
import { DynamicSection, DynamicPageProps } from '../../../../ui/index.js';
export type AtenaContext = {
roles?: string[];
isEditMode: boolean;
hasPermission: boolean;
atenaPagePathname?: string;
sections: DynamicSection[];
mutate: (params?: any) => void;
dynamictSectionPathname?: {
page: string;
};
dynamicSectionsPageProps?: DynamicPageProps;
};
export type AppAtenaPageProps = {
resolvedUrl?: string;
page?: DynamicPageProps;
sections?: DynamicSection[];
disableAuth?: boolean;
};
export type AtenaProviderProps = {
roles?: string[];
children: React.ReactNode;
disableActionsEditMode: boolean;
} & AppAtenaPageProps;
declare function AtenaProvider({ children, roles, sections, resolvedUrl, disableActionsEditMode, page, disableAuth, }: AtenaProviderProps): import("react/jsx-runtime").JSX.Element;
declare function useAtena(): AtenaContext;
export { AtenaProvider, useAtena };