import type { TelemetryPluginStart } from '../../../../../../src/plugins/telemetry/public' ; export type { TelemetryPluginStart } from '../../../../../../src/plugins/telemetry/public' ; export { shouldShowTelemetryOptIn } ; function shouldShowTelemetryOptIn ( telemetry ? ) { if ( telemetry ) { const { telemetryService } = telemetry ; const isOptedIn = telemetryService . getIsOptedIn ( ) ; const canChangeOptInStatus = telemetryService . getCanChangeOptInStatus ( ) ; return canChangeOptInStatus && ! isOptedIn ; } return false ; }