bidasoa-components
Version:
Colección de componentes comunes empleados en proyectos Bidasoa.
13 lines (12 loc) • 526 B
TypeScript
import { LinkConfiguration } from '../LinkConfiguration';
import { FlattenedLink } from './FlattenedLink';
export interface MenuNode<T = LinkConfiguration> {
data: {
menu: {
links: T[];
};
};
}
export declare function getLinks<T = LinkConfiguration>(menu: MenuNode<T>): T[];
export declare function getLinkByPathname(mainMenu: MenuNode, pathname: string): FlattenedLink | undefined;
export declare function getParentLinkForPath(menu: MenuNode, path: string): LinkConfiguration | undefined;