import * as React from 'react';
import { Colors } from '../../models/colors';

export interface SubmitButtonProps {
	text?: string;
	onSubmit?: ({ ...props }) => void;
	palette?: Colors;
	automationName?: string;
	gtmId?: string;
	translator?: Function;
}

type SubmitButtonContainer = SubmitButtonProps & {
	render: () => JSX.Element;
};

class SubmitButton extends React.PureComponent<SubmitButtonContainer, {}> {
	render() {
		return this.props.render();
	}
}

export default SubmitButton;
