@clerk/clerk-js
Version:
Clerk JS library
18 lines (17 loc) • 810 B
TypeScript
import type { CustomPage, EnvironmentResource, LoadedClerk } from '@clerk/types';
import type { NavbarRoute } from '../elements/Navbar';
export type CustomPageContent = {
url: string;
mount: (el: HTMLDivElement) => void;
unmount: (el?: HTMLDivElement) => void;
};
export declare const createUserProfileCustomPages: (customPages: CustomPage[], clerk: LoadedClerk, environment?: EnvironmentResource) => {
routes: NavbarRoute[];
contents: CustomPageContent[];
pageToRootNavbarRouteMap: Record<string, NavbarRoute>;
};
export declare const createOrganizationProfileCustomPages: (customPages: CustomPage[], clerk: LoadedClerk, environment?: EnvironmentResource) => {
routes: NavbarRoute[];
contents: CustomPageContent[];
pageToRootNavbarRouteMap: Record<string, NavbarRoute>;
};