alpinesmuseum-public/assets/js/components/InfoView/ImageWithLegend.js
2022-09-23 07:38:37 +05:30

9 lines
215 B
JavaScript

import React from 'react';
const ImageWithLegend = ({ image, legend }) => (
<div className='ImageWithLegend'>
<img src={image} />
{legend && <label>{legend}</label>}
</div>
);
export default ImageWithLegend;