@scientist-softserv/webstore-component-library
Version:
A React component library intended for use with WebStore applications
27 lines (22 loc) • 544 B
JSX
import React from 'react'
import PropTypes from 'prop-types'
import Image from '../../components/Image/Image'
const Logo = ({ addClass, alt, src, height, logoUrl }) => (
<a href={logoUrl}>
<Image src={src} alt={alt} height={height} addClass={addClass} />
</a>
)
Logo.propTypes = {
addClass: PropTypes.string,
alt: PropTypes.string,
src: PropTypes.string.isRequired,
height: PropTypes.number,
logoUrl: PropTypes.string,
}
Logo.defaultProps = {
addClass: '',
alt: '',
height: 50,
logoUrl: '/',
}
export default Logo