UNPKG

@medalsocial/meda

Version:

Shared Meda UI shell and runtime package.

12 lines (11 loc) 670 B
import type { ReactNode } from 'react'; import type { ShellContentLayout, ShellTab } from './extras/types.js'; interface ShellRouteMatchLike { handle?: unknown; params?: Record<string, string | undefined>; } export declare function getShellContentLayoutFromMatches(matches: ShellRouteMatchLike[]): ShellContentLayout; export declare function getShellTabsFromMatches(matches: ShellRouteMatchLike[], pathname: string): ShellTab[]; export declare function getShellActionsFromMatches(matches: ShellRouteMatchLike[], pathname: string): ReactNode; export declare function getShellPanelViewsFromMatches(matches: ShellRouteMatchLike[]): string[] | undefined; export {};