var __rest = (this && this.__rest) || function (s, e) {
    var t = {};
    for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
        t[p] = s[p];
    if (s != null && typeof Object.getOwnPropertySymbols === "function")
        for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
            if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
                t[p[i]] = s[p[i]];
        }
    return t;
};
import React from 'react';
import { makeStyles } from '@material-ui/core';
import clsx from 'clsx';
const useStyles = makeStyles((theme) => ({
    root: {
        display: 'flex',
        fill: (props) => props.color || 'black'
    },
    showcase: {
        fontSize: 38,
        width: 38,
        height: 38
    },
    large: {
        fontSize: 20,
        width: 20,
        height: 20
    },
    default: {
        fontSize: 18,
        width: 18,
        height: 18
    },
    medium: {
        fontSize: 16,
        width: 16,
        height: 16
    },
    small: {
        fontSize: 14,
        width: 14,
        height: 14
    },
    xs: {
        fontSize: 12,
        width: 12,
        height: 12
    }
}));
export const UnityIcon = (props) => {
    const { component, size = 'default', className } = props, otherProps = __rest(props, ["component", "size", "className"]);
    const classes = useStyles(props);
    return (React.createElement("div", Object.assign({}, otherProps, { className: clsx(classes.root, className, classes[size]) }), component));
};
//# sourceMappingURL=UnityIcon.js.map