import { Action , createAction } from '../../../../../src/plugins/ui_actions/public' ; export const SAMPLE_PANEL_LINK = 'samplePanelLink' ; export const createSamplePanelLink = ( ) : Action => createAction ( { id : SAMPLE_PANEL_LINK , type : SAMPLE_PANEL_LINK , getDisplayName : ( ) => 'Sample panel Link' , execute : async ( ) => { window . location . href = 'https://example.com/kibana/test' ; } , getHref : async ( ) => 'https://example.com/kibana/test' , } ) ;