mirror of
https://github.com/wasp-lang/wasp.git
synced 2024-12-28 11:34:41 +03:00
18 lines
425 B
JavaScript
18 lines
425 B
JavaScript
import React from "react";
|
|
import useBaseUrl from "@docusaurus/useBaseUrl";
|
|
|
|
const ImgWithCaption = (props) => {
|
|
return (
|
|
<div>
|
|
<p align="center">
|
|
<figure>
|
|
<img style={{'width': props.width}} alt={props.alt} src={useBaseUrl(props.source)} />
|
|
<figcaption class="image-caption">{props.caption}</figcaption>
|
|
</figure>
|
|
</p>
|
|
</div>
|
|
);
|
|
};
|
|
|
|
export default ImgWithCaption;
|