import { i18n } from '@kbn/i18n' ; import { schema } from '@kbn/config-schema' ; import { SETTING_CATEGORY } from '../../../../src/plugins/presentation_util/server' ; import { UiSettingsParams } from '../../../../src/core/types' ; import { UI_SETTINGS } from '../common' ; /**
 * uiSettings definitions for Dashboard.
 */ export const getUISettings = ( ) : Record < string , UiSettingsParams < boolean > > => ( { [ UI_SETTINGS . ENABLE_LABS_UI ] : { name : i18n . translate ( 'dashboard.labs.enableUI' , { defaultMessage : 'Enable labs button in Dashboard' , } ) , description : i18n . translate ( 'dashboard.labs.enableLabsDescription' , { defaultMessage : 'This flag determines if the viewer has access to the Labs button, a quick way to enable and disable experimental features in Dashboard.' , } ) , value : false , type : 'boolean' , schema : schema . boolean ( ) , category : [ SETTING_CATEGORY ] , requiresPageReload : true , } , } ) ;