import { BreadcrumbValue } from '@vendure/admin-ui/core'; /** * @description * Provides functions for setting the current page title and breadcrumb. * * @example * ```ts * import { usePageMetadata } from '\@vendure/admin-ui/react'; * import { useEffect } from 'react'; * * export const MyComponent = () => { * const { setTitle, setBreadcrumb } = usePageMetadata(); * useEffect(() => { * setTitle('My Page'); * setBreadcrumb([ * { link: ['./parent'], label: 'Parent Page' }, * { link: ['./'], label: 'This Page' }, * ]); * }, []); * // ... * return
...
; * } * ``` * * @docsCategory react-hooks */ export declare function usePageMetadata(): { setBreadcrumb: (newValue: BreadcrumbValue) => void; setTitle: (newTitle: string) => void; };