UNPKG

infinity-forge

Version:
27 lines (26 loc) 904 B
import { FetcherParams, DynamicSection, DynamicPageProps } from '../../../../ui/index.js'; export type AtenaContext = { roles?: string[]; isEditMode: boolean; hasPermission: boolean; atenaPagePathname?: string; sections: DynamicSection[]; mutate: (params?: FetcherParams) => 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; } & AppAtenaPageProps; declare function AtenaProvider({ children, roles, sections, resolvedUrl, page, }: AtenaProviderProps): import("react/jsx-runtime").JSX.Element; declare function useAtena(): AtenaContext; export { AtenaProvider, useAtena };