@shopify/app-bridge-react
Version:
**[Join our team and work on libraries like this one.](https://www.shopify.ca/careers)**
18 lines (17 loc) • 564 B
TypeScript
export interface NavigationLink {
label: string;
destination: string;
}
export interface Props {
/**
* List of links in navigation menu
*/
navigationLinks: NavigationLink[];
/**
* Custom matcher to set active link.
* This function will be called with each link and the current location.
* If it returns true the current link will be set to the active link.
*/
matcher?: (link: NavigationLink, location: Location) => boolean;
}
export default function NavigationMenu({ navigationLinks, matcher }: Props): null;