import React from 'react' ; import { useActions } from 'kea' ; import { EuiButton } from '@elastic/eui' ; import { ADD_SOURCE_ENGINES_BUTTON_LABEL } from '../i18n' ; import { SourceEnginesLogic } from '../source_engines_logic' ; export const AddSourceEnginesButton = ( ) => { const { openModal } = useActions ( SourceEnginesLogic ) ; return ( < EuiButton fill iconType = "plusInCircle" onClick = { openModal } > { ADD_SOURCE_ENGINES_BUTTON_LABEL } < /EuiButton>); } ;