p5.js-web-editor/client/modules/User/components/GoogleButton.jsx

23 lines
488 B
React
Raw Normal View History

import PropTypes from 'prop-types';
import React from 'react';
2020-04-29 22:34:37 +00:00
import GoogleIcon from '../../../images/google.svg';
function GoogleButton(props) {
return (
<a
className="google-button"
href="/auth/google/"
>
2020-05-05 23:08:45 +00:00
<GoogleIcon className="google-icon" role="img" aria-label="Google Logo" focusable="false" />
<span>{props.buttonText}</span>
</a>
);
}
GoogleButton.propTypes = {
buttonText: PropTypes.string.isRequired
};
export default GoogleButton;