36 lines
642 B
JavaScript
36 lines
642 B
JavaScript
import React from 'react';
|
|
import PropTypes from 'prop-types';
|
|
|
|
function Logo({ src, alt, ...attributes }) {
|
|
return (
|
|
<img src={src} alt={alt} {...attributes} />
|
|
);
|
|
}
|
|
|
|
Logo.propTypes = {
|
|
src: PropTypes.string.isRequired,
|
|
alt: PropTypes.string.isRequired,
|
|
};
|
|
|
|
function LinkedLogo({
|
|
href,
|
|
src,
|
|
alt,
|
|
...attributes
|
|
}) {
|
|
return (
|
|
<a href={href} {...attributes}>
|
|
<img className="d-block" src={src} alt={alt} />
|
|
</a>
|
|
);
|
|
}
|
|
|
|
LinkedLogo.propTypes = {
|
|
href: PropTypes.string.isRequired,
|
|
src: PropTypes.string.isRequired,
|
|
alt: PropTypes.string.isRequired,
|
|
};
|
|
|
|
export { LinkedLogo, Logo };
|
|
export default Logo;
|