"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const tslib_1 = require("tslib");
const react_1 = tslib_1.__importDefault(require("react"));
function LoginStyle(props) {
    const { buttonColor } = props;
    const hexColorPattern = /#[0-9A-Fa-f]{6}/g;
    const containsHexColor = hexColorPattern.test(buttonColor);
    const styleButton = containsHexColor
        ? `background: ${buttonColor}; 
       box-shadow:none !important`
        : `background-color: ${buttonColor}`;
    return (react_1.default.createElement("style", null, `
      .button-login {
        ${styleButton}
       }
      `));
}
exports.default = LoginStyle;
//# sourceMappingURL=login-style.js.map