Repository URL to install this package:
|
Version:
2.1.0 ▾
|
@skava/ui-presets
/
src
/
presets
/
ProductPieces
/
ProductImageWithCaption
/
ProductImageWithCaption.tsx
|
|---|
import React from 'react'
import { ProductImageWithCaptionProps } from './typings'
import { StyledFigure } from './styled'
class ProductImageWithCaption extends React.PureComponent<
ProductImageWithCaptionProps
> {
static defaultProps = {
captionColor: 'grey',
}
render() {
const { captionColor } = this.props
return <StyledFigure {...this.props} captionColor={captionColor} />
}
}
export { ProductImageWithCaption }
export default ProductImageWithCaption