import { i18n } from '@kbn/i18n' ; export function getVisibilityToggleIcon ( isVisible ) { return isVisible ? 'eyeClosed' : 'eye' ; } export function getVisibilityToggleLabel ( isVisible ) { return isVisible ? i18n . translate ( 'xpack.maps.layerTocActions.hideLayerTitle' , { defaultMessage : 'Hide layer' , } ) : i18n . translate ( 'xpack.maps.layerTocActions.showLayerTitle' , { defaultMessage : 'Show layer' , } ) ; } export const EDIT_LAYER_SETTINGS_LABEL = i18n . translate ( 'xpack.maps.layerControl.layerTocActions.layerSettingsButtonLabel' , { defaultMessage : 'Edit layer settings' , } ) ; export const EDIT_FEATURES_LABEL = i18n . translate ( 'xpack.maps.layerControl.layerTocActions.editFeaturesButtonLabel' , { defaultMessage : 'Edit features' , } ) ; export const FIT_TO_DATA_LABEL = i18n . translate ( 'xpack.maps.layerTocActions.fitToDataTitle' , { defaultMessage : 'Fit to data' , } ) ;