useLayoutLinks

Layout Links hook

Examples

Basic Usage

This hook builds links available to the user provided by the layoutQuery.data

// 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;
};