better-auth-dashboard
Version:
A better-Auth powered admin dashboard.
28 lines (27 loc) • 797 B
TypeScript
import type { Plugin, RequiredComponents } from "../../types";
import type { createAuthClient } from "better-auth/react";
export type DashboardProps = {
/**
* ShadCN components required to render the dashboard.
*/
components: RequiredComponents;
/**
* URL slug params.
*/
params: Promise<{
all: string;
}>;
/**
* Relative URL path that leads to this dashboard.
*/
path?: string;
/**
* List of dashboard plugins.
*/
plugins: Plugin[];
/**
* Your Better-Auth client auth instance.
*/
authClient: ReturnType<typeof createAuthClient>;
};
export declare const Dashboard: import("react").MemoExoticComponent<({ components, path, plugins }: DashboardProps) => import("react/jsx-runtime").JSX.Element>;