Menu Selectors
getMenuById
Section titled “getMenuById”Retrieves entries of a service menu by its ID from the menu data in the store.
import { getMenuById } from '@shopgate/engage/core';Attention: The following import path is deprecated. Use the path from the example above instead:
import { getMenuById } from '@shopgate/pwa-common/selectors/menu'
Parameters
Section titled “Parameters”state(Object) required: The application state.props(Object) required: The menu properties.id(string) required: The ID of the menu.
Returns
Section titled “Returns”(Object): The service menu data. If no menu data is found, it returns an empty object - {}.

