import React from 'react' ; import { EuiSkipLink } from '@elastic/eui' ; import { FormattedMessage , I18nProvider } from '@osd/i18n/react' ; export interface SkipBottomButtonProps { /**
     * Action to perform on click
     */ onClick : ( ) => void ; } export function SkipBottomButton ( { onClick } ) { return ( < I18nProvider > < EuiSkipLink size = "s" onClick = { ( event ) => { event . preventDefault ( ) ; onClick ( ) ; } } className = "dscSkipButton" destinationId = "" data - test - subj = "discoverSkipTableButton" > < FormattedMessage id = "discover.skipToBottomButtonLabel" defaultMessage = "Skip to end of table" / > < /EuiSkipLink> < /I18nProvider>); }