import { useTheme } from '../../../../../theme/hooks/useTheme';
export const useIconColor = ({ color, renderIcon }) => {
    const theme = 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];
};
