better-auth-dashboard
Version:
A better-Auth powered admin dashboard.
9 lines (8 loc) • 578 B
JavaScript
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
import { memo } from "react";
import { AppSidebar } from "./AppSidebar";
import { dashboardContext } from "./dashboardContext";
export const Dashboard = memo(({ components, path = "/dashboard", plugins }) => {
return (_jsx(dashboardContext.Provider, { value: {}, children: _jsxs(components.SidebarProvider, { children: [_jsx(AppSidebar, { components: components, path: path, plugins: plugins }), _jsx("main", { children: _jsx(components.SidebarTrigger, {}) })] }) }));
});
Dashboard.displayName = `Dashboard`;