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

export interface SecondaryButtonProps {
	text?: string;
	automationName?: string;
	withInput?: boolean;
	palette?: Colors;
	gtmId?: string;
	onClick?: () => void;
	translator?: Function;
}

type SecondaryButtonContainer = SecondaryButtonProps & {
	render: () => JSX.Element;
};

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

export default SecondaryButton;
