import React, { Component } from 'react';
import { StyleSheet, Text } from 'react-native';
import { types, weights } from '../../../styles/variables';
const styles = StyleSheet.create({
    title: {
        marginBottom: 7
    }
});
export class ProductItemTitle extends Component {
    render() {
        const { title, titleStyle, renderTitle } = this.props;
        if (renderTitle) {
            return renderTitle();
        }
        if (!title) {
            return null;
        }
        return <Text style={[types.regular, weights.medium, styles.title, titleStyle]}>{title}</Text>;
    }
}
//# sourceMappingURL=ProductItemTitle.js.map