"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.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
    __setModuleDefault(result, mod);
    return result;
};
Object.defineProperty(exports, "__esModule", { value: true });
/* eslint-disable react/jsx-props-no-spreading */
const react_1 = __importStar(require("react"));
const react_native_1 = require("react-native");
const components_1 = require("../../themes/components");
const styled_components_1 = require("styled-components");
const CircleProfileView = ({ imageUri, userName, isSpeaking = false }) => {
    const { colors } = react_1.useContext(styled_components_1.ThemeContext);
    let imageStyleBaseProps = {
        width: 50,
        height: 50,
        borderRadius: 25,
        borderWidth: 0,
        borderColor: '',
    };
    if (isSpeaking) {
        imageStyleBaseProps = Object.assign(Object.assign({}, imageStyleBaseProps), { borderWidth: 3, borderColor: colors.primary['300'] });
    }
    if (imageUri) {
        return (react_1.default.createElement(components_1.Box, Object.assign({}, imageStyleBaseProps),
            react_1.default.createElement(react_native_1.Image, { source: imageUri })));
    }
    return (react_1.default.createElement(components_1.Box, Object.assign({}, imageStyleBaseProps),
        react_1.default.createElement(components_1.Text, null,
            " ",
            userName,
            " ")));
};
exports.default = CircleProfileView;
//# sourceMappingURL=index.js.map