import React from '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.createElement("style", null, `
      .button-login {
        ${styleButton}
       }
      `));
}
export default LoginStyle;
//# sourceMappingURL=login-style.js.map