import React, { FunctionComponent } from 'react'; import globalize from '../../../scripts/globalize'; const createButtonElement = ({ type, id, className, title, leftIcon, rightIcon }: IProps) => ({ __html: ` ${leftIcon} ${title} ${rightIcon} ` }); type IProps = { type?: string; id?: string; className?: string; title?: string; leftIcon?: string; rightIcon?: string; } const ButtonElement: FunctionComponent = ({ type, id, className, title, leftIcon, rightIcon }: IProps) => { return ( ` : '', rightIcon: rightIcon ? `` : '' })} /> ); }; export default ButtonElement;