import { i18n } from '@osd/i18n' ; export function getRootBreadcrumbs ( ) { return [ { text : i18n . translate ( 'discover.rootBreadcrumb' , { defaultMessage : 'Discover' , } ) , href : '#/' , } , ] ; } export function getSavedSearchBreadcrumbs ( $route ) { return [ ... getRootBreadcrumbs ( ) , { text : $route . current . locals . savedObjects . savedSearch . id , } , ] ; }