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}`} class="w-full h-full">
			<img
				class="w-full object-contain rounded-xl"
				src={`${base}/image/${props.ID}`}
			/>
		</A>
	);
};
