import React from 'react' ; import { FieldProps } from '../../FieldProps' ; import { ButtonFormField } from '@sitecore-jss/sitecore-jss-forms' ; const Button = ( { field , onButtonClick } ) => ( < button type = "submit" className = { field . model . cssClass } value = { field . model . title } name = { field . buttonField . name } id = { field . buttonField . id } onClick = { ( ) => onButtonClick ( field . buttonField . name ) } > { field . model . title } < /button>); export default Button ;