aboutsummaryrefslogtreecommitdiff
path: root/components/image.tsx
blob: 106c2bd7bcbb77b4ef692cdefb023121cb78f574 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
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>
}