import { i18n } from '@kbn/i18n' ; export const toastDrilldownCreated = { title : ( drilldownName ) => i18n . translate ( 'xpack.uiActionsEnhanced.drilldowns.components.flyoutDrilldownWizard.toast.drilldownCreatedTitle' , { defaultMessage : 'Drilldown "{drilldownName}" created' , values : { drilldownName , } , } ) , text : i18n . translate ( 'xpack.uiActionsEnhanced.drilldowns.components.flyoutDrilldownWizard.toast.drilldownCreatedText' , { defaultMessage : 'Save your dashboard before testing.' , } ) , } ; export const toastDrilldownEdited = { title : ( drilldownName ) => i18n . translate ( 'xpack.uiActionsEnhanced.drilldowns.components.flyoutDrilldownWizard.toast.drilldownEditedTitle' , { defaultMessage : 'Drilldown "{drilldownName}" updated' , values : { drilldownName , } , } ) , text : i18n . translate ( 'xpack.uiActionsEnhanced.drilldowns.components.flyoutDrilldownWizard.toast.drilldownEditedText' , { defaultMessage : 'Save your dashboard before testing.' , } ) , } ; export const toastDrilldownDeleted = { title : i18n . translate ( 'xpack.uiActionsEnhanced.drilldowns.components.flyoutDrilldownWizard.toast.drilldownDeletedTitle' , { defaultMessage : 'Drilldown deleted' , } ) , text : i18n . translate ( 'xpack.uiActionsEnhanced.drilldowns.components.flyoutDrilldownWizard.toast.drilldownDeletedText' , { defaultMessage : 'Save your dashboard before testing.' , } ) , } ; export const toastDrilldownsDeleted = { title : ( n ) => i18n . translate ( 'xpack.uiActionsEnhanced.drilldowns.components.flyoutDrilldownWizard.toast.drilldownsDeletedTitle' , { defaultMessage : '{n} drilldowns deleted' , values : { n } , } ) , text : i18n . translate ( 'xpack.uiActionsEnhanced.drilldowns.components.flyoutDrilldownWizard.toast.drilldownsDeletedText' , { defaultMessage : 'Save your dashboard before testing.' , } ) , } ; export const toastDrilldownsCRUDError = i18n . translate ( 'xpack.uiActionsEnhanced.drilldowns.components.flyoutDrilldownWizard.toast.drilldownsCRUDErrorTitle' , { defaultMessage : 'Error saving drilldown' , description : 'Title for generic error toast when persisting drilldown updates failed' , } ) ; export const insufficientLicenseLevel = i18n . translate ( 'xpack.uiActionsEnhanced.drilldowns.components.flyoutDrilldownWizard.insufficientLicenseLevelError' , { defaultMessage : 'Insufficient license level' , description : 'User created drilldown with higher license type, but then downgraded the license. This error is shown in the list near created drilldown' , } ) ; export const invalidDrilldownType = ( type ) => i18n . translate ( 'xpack.uiActionsEnhanced.drilldowns.components.flyoutDrilldownWizard.invalidDrilldownType' , { defaultMessage : "Drilldown type {type} doesn't exist" , values : { type , } , } ) ; export const txtDefaultTitle = i18n . translate ( 'xpack.uiActionsEnhanced.drilldowns.drilldownManager.state.defaultTitle' , { defaultMessage : 'Drilldowns' , description : 'Drilldowns flyout title.' , } ) ;