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

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

type ConfirmButtonContainer = ConfirmButtonProps & {
	render: () => JSX.Element;
};

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

export default ConfirmButton;
