import { Component } from "solid-js";
import { base } from "../../network";
import { A } from "@solidjs/router";

export const ImageComponent: Component<{ ID: string }> = (props) => {
	return (
		<A href={`/image/${props.ID}`}>
			<img src={`${base}/image/${props.ID}`} />
		</A>
	);
};
