roa-mirage
Version:
[Live Demo of the Pattern Library](https://mealeyst.github.io/mirage/)
24 lines (18 loc) • 549 B
JavaScript
import PropTypes from 'prop-types'
import styled from 'styled-components'
import BaseAIcon from './AIcon.base'
const AIcon = styled(BaseAIcon)`
fill: ${props => props.theme.colors.rocketBlue};
`
AIcon.propTypes = {
theme: PropTypes.shape({
colors: PropTypes.shape({
rocketBlue: PropTypes.string
})
}).isRequired
}
/** @component */
export default AIcon
// 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