useLayoutLinks

Layout Links hook

Examples

Basic Usage

This hook builds the links available to the user, using the data returned by the layoutQuery.data.

Data Available from layoutQuery

The following fields are accessible from the layoutQuery response:

  1. pointsNamePlural
  2. pointsNameSingular
  3. bankBalance
  4. cultureCloud
  5. theme
  6. ccIsBellIndicatorActive
  7. hasRedeemAwardsPermission
// import { useLayoutLinks } from '@octanner/prism-core/hooks';
// import LayoutContext from '@octanner/prism-core/context/Layout'
() => {
const [layoutQuery] = React.useContext(LayoutContext);
const links = useLayoutLinks(layoutQuery?.data);
return null;
};