@premieroctet/next-admin
Version:
Next-Admin provides a customizable and turnkey admin dashboard for applications built with Next.js and powered by the Prisma ORM. It aims to simplify the development process by providing a turnkey admin system that can be easily integrated into your proje
27 lines • 947 B
TypeScript
import React from "react";
import { ModelName, NextAdminContext, NextAdminOptions, Schema } from "../types";
export type ConfigContextType = {
options?: NextAdminOptions;
basePath: string;
isAppDir?: boolean;
apiBasePath: string;
resource?: ModelName | null;
resourcesIdProperty: Record<ModelName, string> | null;
schema: Schema;
nextAdminContext?: NextAdminContext;
};
type ProviderProps = {
basePath: string;
apiBasePath: string;
options?: NextAdminOptions;
children: React.ReactNode;
isAppDir?: boolean;
resource?: ModelName | null;
resourcesIdProperty: Record<ModelName, string> | null;
schema: Schema;
nextAdminContext?: NextAdminContext;
};
export declare const ConfigProvider: ({ children, ...props }: ProviderProps) => import("react/jsx-runtime").JSX.Element;
export declare const useConfig: () => ConfigContextType;
export {};
//# sourceMappingURL=ConfigContext.d.ts.map