import { UI_SETTINGS } from '../../../../../src/plugins/data/public' ; import { useKibana } from '../../../../../src/plugins/kibana_react/public' ; export { UI_SETTINGS } ; type SettingKeys = keyof typeof UI_SETTINGS ; type SettingValues = typeof UI_SETTINGS [ SettingKeys ] ; export function useKibanaUISettings < T > ( key ) { const { services : { uiSettings } , } = useKibana ( ) ; return uiSettings ! . get < T > ( key ) ; }