"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.useIconColor = void 0;
const useTheme_1 = require("../../../../../theme/hooks/useTheme");
const useIconColor = ({ color, renderIcon }) => {
    const theme = (0, useTheme_1.useTheme)();
    const colorMap = {
        warning: theme.palette.yellow[800],
        grey: theme.palette.grey[800],
        lightGrey: theme.palette.grey[400],
    };
    if (renderIcon) {
        return 'currentColor';
    }
    if (color) {
        return colorMap[color];
    }
    return theme.palette.grey[400];
};
exports.useIconColor = useIconColor;
