import React, { Component } from 'react';
import { StyleSheet } from 'react-native';
import { Button } from '../../Button';
const style = StyleSheet.create({
    button: {
        marginTop: 7,
        marginBottom: 10
    }
});
export class ProductItemButton extends Component {
    render() {
        const { buttonText, buttonStyle, buttonTextStyle, buttonProps, onButtonPress, renderButton } = this.props;
        if (renderButton) {
            return renderButton();
        }
        if (!buttonText || !onButtonPress) {
            return null;
        }
        return (<Button full title={buttonText} style={[style.button, buttonStyle]} titleStyle={buttonTextStyle} onPress={onButtonPress} {...buttonProps}/>);
    }
}
//# sourceMappingURL=ProductItemButton.js.map