UNPKG

@clerk/clerk-js

Version:
18 lines (17 loc) 810 B
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>; };