"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.styles = ({ color, size: Size, textStyle, style }, _muiTheme, theme) => {
    let finalColor = color;
    const size = Size || 56;
    if (color === 'primary' ||
        color === 'secondary' ||
        color === 'error' ||
        color === 'success' ||
        color === 'warning') {
        finalColor = theme.palette[color].main;
    }
    return {
        root: Object.assign(Object.assign(Object.assign({}, style), textStyle), { fontSize: size * 0.6, height: size, width: size }),
        colorDefault: {
            color: finalColor,
        },
    };
};
