aboutsummaryrefslogtreecommitdiff
path: root/components/image.tsx
blob: ad84ff62aadf8e8a242eec625973eccc9863dfde (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
export default function Image(props: {
	src: string;
	alt?: string;
}) {
	return <div className="image">
		<img src={props.src} alt={props.alt}/>
		{
			props.alt && <div>
				<p>{props.alt}</p>
			</div>
		}
	</div>
}