var __read = (this && this.__read) || function (o, n) {
    var m = typeof Symbol === "function" && o[Symbol.iterator];
    if (!m) return o;
    var i = m.call(o), r, ar = [], e;
    try {
        while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
    }
    catch (error) { e = { error: error }; }
    finally {
        try {
            if (r && !r.done && (m = i["return"])) m.call(i);
        }
        finally { if (e) throw e.error; }
    }
    return ar;
};
import { useContext } from 'react';
import { ThemeContext } from '../themes/Theme';
export function classForComponent(componentName) {
    return "unilogin-component-" + componentName;
}
export function useClassFor(componentName) {
    return classForComponent(componentName) + " " + useThemeClassFor();
}
export var useThemeClassFor = function () {
    var _a = __read(useContext(ThemeContext), 1), theme = _a[0];
    return "unilogin-theme-" + theme;
};
//# sourceMappingURL=classFor.js.map