"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.PHXIcon = void 0;
const tslib_1 = require("tslib");
const react_1 = tslib_1.__importDefault(require("react"));
const types_1 = require("../types");
const PHXIcon = ({ alt = 'image', opacity = 'full', rounded = false, size = 'sm', src }) => {
    const sizeMap = {
        sm: 'w-4 h-4',
        md: 'w-5 h-5',
        lg: 'w-6 h-6',
    };
    const opacityMap = {
        full: '',
        medium: 'opacity-60',
        low: 'opacity-30',
    };
    const imageClass = (0, types_1.classNames)(sizeMap[size], opacityMap[opacity], rounded && 'rounded-full', 'object-contain');
    return react_1.default.createElement("img", { alt: alt, className: imageClass, src: src });
};
exports.PHXIcon = PHXIcon;
//# sourceMappingURL=PHXIcon.js.map