diff options
Diffstat (limited to 'components/image.tsx')
-rw-r--r-- | components/image.tsx | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/components/image.tsx b/components/image.tsx new file mode 100644 index 0000000..106c2bd --- /dev/null +++ b/components/image.tsx @@ -0,0 +1,13 @@ +export default function Image(props: { + src: string; + title?: string; +}) { + return <div className="image"> + <img src={props.src} alt={props.title}/> + { + props.title && <div> + <p>{props.title}</p> + </div> + } + </div> +} |