var __assign = (this && this.__assign) || function () {
    __assign = Object.assign || function(t) {
        for (var s, i = 1, n = arguments.length; i < n; i++) {
            s = arguments[i];
            for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
                t[p] = s[p];
        }
        return t;
    };
    return __assign.apply(this, arguments);
};
import { jsx as _jsx } from "react/jsx-runtime";
import { Text } from "../theme";
import { memo } from "react";
import { makeStyles } from "../theme";
import { breakpointsValues } from "../theme";
export var GlHeroText = memo(function (props) {
    var children = props.children, className = props.className;
    var _a = useStyles(), classes = _a.classes, cx = _a.cx;
    return (_jsx(Text, __assign({ className: cx(classes.root, className), htmlComponent: "h1", typo: "body 1" }, { children: children })));
});
var useStyles = makeStyles({ "name": { GlHeroText: GlHeroText } })(function (theme) { return ({
    "root": __assign({ "fontWeight": 700 }, (function () {
        var value = (theme.typography.rootFontSizePx / 16) *
            (function () {
                if (theme.windowInnerWidth >= breakpointsValues.xl) {
                    return 86;
                }
                if (theme.windowInnerWidth >= 600) {
                    return 52;
                }
                return 36;
            })();
        return {
            "fontSize": value,
            "lineHeight": "".concat(value, "px"),
        };
    })()),
}); });
//# sourceMappingURL=GlHeroText.js.map