@rocketsofawesome/mirage
Version:
[Live Demo of the Pattern Library](https://rocketsofawesome.github.io/mirage/)
25 lines (19 loc) • 561 B
JavaScript
import PropTypes from 'prop-types'
import styled from 'styled-components'
import BaseLogo from './Logo.base'
const Logo = styled(BaseLogo)`
fill: ${props => props.theme.colors.rocketBlue};
`
Logo.propTypes = {
theme: PropTypes.shape({
color: PropTypes.shape({
rocketBlue: PropTypes.string
})
}),
maxWidth: PropTypes.string
}
/** @component */
export default Logo
// Wrapping the component in a styled tag so that we can refference it in other
// other styled components. See:
// https://www.styled-components.com/docs/advanced#caveat