import { getMenuPageBySlug } from '@src/hylo-components/utils/hylo/hylo';
Searches through a menu object for a page.
The object has to have the structure like defined by the django menu template "menu/menu_json.html".
It searches for a page where the "href" ends with the given slug.
Only the first level of the given menu object is searched. The search is not recursive.
import { getMenuPageBySlug } from '@src/hylo-components/utils/hylo/hylo';
Searches through a menu object for a page. The object has to have the structure like defined by the django menu template "menu/menu_json.html".
It searches for a page where the "href" ends with the given slug. Only the first level of the given menu object is searched. The search is not recursive.
Returns null if no page were found.