"use strict";
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
    if (k2 === undefined) k2 = k;
    Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
}) : (function(o, m, k, k2) {
    if (k2 === undefined) k2 = k;
    o[k2] = m[k];
}));
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
    Object.defineProperty(o, "default", { enumerable: true, value: v });
}) : function(o, v) {
    o["default"] = v;
});
var __importStar = (this && this.__importStar) || function (mod) {
    if (mod && mod.__esModule) return mod;
    var result = {};
    if (mod != null) for (var k in mod) if (k !== "default" && Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
    __setModuleDefault(result, mod);
    return result;
};
var __importDefault = (this && this.__importDefault) || function (mod) {
    return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
const react_1 = __importStar(require("react"));
const react_native_1 = require("react-native");
const prop_types_1 = __importDefault(require("prop-types"));
const Color_1 = __importDefault(require("./Color"));
const utils_1 = require("./utils");
const styles = react_native_1.StyleSheet.create({
    container: {
        alignItems: 'center',
        justifyContent: 'center',
        flex: 1,
        marginTop: 5,
        marginBottom: 10,
    },
    text: {
        backgroundColor: Color_1.default.backgroundTransparent,
        color: Color_1.default.defaultColor,
        fontSize: 12,
        fontWeight: '300',
    },
});
class SystemMessage extends react_1.Component {
    render() {
        const { currentMessage, containerStyle, wrapperStyle, textStyle, } = this.props;
        if (currentMessage) {
            return (react_1.default.createElement(react_native_1.View, { style: [styles.container, containerStyle] },
                react_1.default.createElement(react_native_1.View, { style: wrapperStyle },
                    react_1.default.createElement(react_native_1.Text, { style: [styles.text, textStyle] }, currentMessage.text))));
        }
        return null;
    }
}
exports.default = SystemMessage;
SystemMessage.defaultProps = {
    currentMessage: {
        system: false,
    },
    containerStyle: {},
    wrapperStyle: {},
    textStyle: {},
};
SystemMessage.propTypes = {
    currentMessage: prop_types_1.default.object,
    containerStyle: utils_1.StylePropType,
    wrapperStyle: utils_1.StylePropType,
    textStyle: utils_1.StylePropType,
};
//# sourceMappingURL=SystemMessage.js.map