"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _react = require("react");
var _reactNative = require("react-native");
const IconTab = ({
  isActive,
  icon,
  themeStyles
}) => {
  const styles = _reactNative.StyleSheet.create({
    container: {
      width: 70,
      paddingVertical: 16,
      alignItems: 'center',
      justifyContent: 'center'
    },
    active: {
      borderBottomWidth: 2,
      borderBottomColor: themeStyles === null || themeStyles === void 0 ? void 0 : themeStyles.colors.primary
    }
  });
  const containerStyle = isActive ? [styles.container, styles.active] : [styles.container];
  return /*#__PURE__*/React.createElement(_reactNative.View, {
    style: containerStyle
  }, icon);
};
var _default = exports.default = /*#__PURE__*/(0, _react.memo)(IconTab);
//# sourceMappingURL=IconTab.js.map