import React, { Component } from 'react';
import { StyleSheet } from 'react-native';
import { Swatches } from '../../Swatches';
const styles = StyleSheet.create({
    swatches: {
        marginBottom: 10
    }
});
export class ProductItemSwatches extends Component {
    render() {
        const { swatchItems, swatchStyle, swatchesProps, renderSwatches } = this.props;
        if (renderSwatches) {
            return renderSwatches();
        }
        if (!swatchItems) {
            return null;
        }
        return (<Swatches items={swatchItems} style={[styles.swatches, swatchStyle]} {...swatchesProps}/>);
    }
}
//# sourceMappingURL=ProductItemSwatches.js.map