import React, { Component } from 'react';
import { StyleSheet, Text } from 'react-native';
import { types } from '../../../styles/variables';
const styles = StyleSheet.create({
    brand: {
        marginBottom: 4
    }
});
export class ProductItemBrand extends Component {
    render() {
        const { brand, brandStyle, renderBrand } = this.props;
        if (renderBrand) {
            return renderBrand();
        }
        if (!brand) {
            return null;
        }
        return <Text style={[types.caption, styles.brand, brandStyle]}>{brand.toUpperCase()}</Text>;
    }
}
//# sourceMappingURL=ProductItemBrand.js.map