UNPKG

better-auth-dashboard

Version:

A better-Auth powered admin dashboard.

31 lines (30 loc) 907 B
import type { ForwardRefExoticComponent, ReactNode, RefAttributes } from "react"; import type { RequiredComponents } from "./types"; import type { LucideProps } from "lucide-react"; export type DashboardPlugin = { name: string; slug: string; icon: ForwardRefExoticComponent<Omit<LucideProps, "ref"> & RefAttributes<SVGSVGElement>>; component: ReactNode; }; export type DashboardProps = { /** * Dashboard plugins */ children: DashboardPlugin[]; /** * 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; }; export declare const Dashboard: ({ components, path, children, params, }: DashboardProps) => import("react/jsx-runtime").JSX.Element;