UNPKG

bknd

Version:

Lightweight Firebase/Supabase alternative built to run anywhere — incl. Next.js, React Router, Astro, Cloudflare, Bun, Node, AWS Lambda & more.

46 lines (45 loc) 1.3 kB
import { type ReactNode } from "react"; import { type AppTheme } from "../ui/client/use-theme"; import { type ClientProviderProps } from "bknd/client"; import type { BkndAdminAppShellOptions, BkndAdminEntitiesOptions } from "./options"; export type BkndAdminConfig = { /** * Base path of the Admin UI * @default `/` */ basepath?: string; /** * Path to return to when clicking the logo * @default `/` */ logo_return_path?: string; /** * Theme of the Admin UI * @default `system` */ theme?: AppTheme; /** * Entities configuration like headers, footers, actions, field renders, etc. */ entities?: BkndAdminEntitiesOptions; /** * App shell configuration like user menu actions. */ appShell?: BkndAdminAppShellOptions; }; export type BkndAdminProps = { /** * Base URL of the API, only needed if you are not using the `withProvider` prop */ baseUrl?: string; /** * Whether to wrap Admin in a `<ClientProvider />` */ withProvider?: boolean | ClientProviderProps; /** * Admin UI customization options */ config?: BkndAdminConfig; children?: ReactNode; }; export default function Admin(props: BkndAdminProps): import("react/jsx-runtime").JSX.Element;