import * as React from 'react' ; import { useDrilldownManager } from '../context' ; import { DrilldownHelloBar } from '../../components/drilldown_hello_bar' ; export const HelloBar = ( { } ) => { const drilldowns = useDrilldownManager ( ) ; const hideWelcomeMessage = drilldowns . useWelcomeMessage ( ) ; if ( hideWelcomeMessage ) return null ; return ( < DrilldownHelloBar docsLink = { drilldowns . deps . docsLink } onHideClick = { drilldowns . hideWelcomeMessage } / > ) ; } ;