"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
    return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.ProductIcon = void 0;
var material_1 = require("@mui/material");
var react_1 = __importDefault(require("react"));
var colors_1 = require("../../base/colors");
var ProductIcon = function (_a) {
    var _b = _a.size, size = _b === void 0 ? 50 : _b, _c = _a.src, src = _c === void 0 ? "" : _c, alt = _a.alt, _d = _a.white, white = _d === void 0 ? false : _d, _e = _a.square, square = _e === void 0 ? false : _e;
    return (react_1.default.createElement(material_1.Avatar, { style: {
            backgroundColor: white ? colors_1.green.dark : colors_1.grey.soft,
            height: size,
            width: size,
        }, variant: square ? "rounded" : "circular" },
        react_1.default.createElement("img", { src: src, width: size / 2, alt: alt || "" })));
};
exports.ProductIcon = ProductIcon;
//# sourceMappingURL=ProductIcon.js.map