import { useKibana } from '../../../../../src/plugins/kibana_react/public' ; import { ObservabilityPublicPluginsStart } from '../' ; export function useTimefilterService ( ) { const { services } = useKibana < ObservabilityPublicPluginsStart > ( ) ; return services . data . query . timefilter . timefilter ; }