var React = require('react/addons'),
	classnames = require('classnames'),
	Tappable = require('react-tappable'),
	Navigation = require('../mixins/Navigation');

module.exports = React.createClass({
	mixins: [Navigation],
	propTypes: {
		action: React.PropTypes.func,
		aux: React.PropTypes.bool,
		className: React.PropTypes.string,
		delete: React.PropTypes.bool,
		disabled: React.PropTypes.bool,
		primaryLabel: React.PropTypes.string,
		secondaryLabel: React.PropTypes.string,
		value: React.PropTypes.string
	},
	getDefaultProps: function() {
		return {
			action: function() {},
			className: '',
			secondaryLabel: ''
		};
	},
	render: function() {

		var className = classnames({
			'Keypad-button': true,
			'is-auxiliary': this.props.aux || this.props.delete,
			'is-disabled': this.props.disabled
		});

		var primaryLabel = this.props.primaryLabel ? <div className="Keypad-button-primary-label">{this.props.primaryLabel}</div> : null;
		var secondaryLabel = this.props.secondaryLabel ? <div className="Keypad-button-secondary-label">{this.props.secondaryLabel}</div> : null;
		var deleteIcon = this.props.delete ? <img src="/assets/keypad/delete.svg" className="Keypad-button-icon" /> : null;

		return (
			<div className="Keypad-cell">
				<Tappable onTap={this.props.action} className={className} component="button" disabled={this.props.disabled}>
					<div className="Keypad-button_inner">
						{primaryLabel}
						{secondaryLabel}
					</div>
				</Tappable>
			</div>
		);
	}
});

@@ -1083,126 +1083,8 @@
 ull;
-%0A%09%09var deleteIcon = this.props.delete ? %3Cimg src=%22/assets/keypad/delete.svg%22 className=%22Keypad-button-icon%22 /%3E : null;
 %0A%0A%09%09

remove unused deleteIcon