15 lines
389 B
TypeScript
15 lines
389 B
TypeScript
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 max-w-[700px] max-h-[400px]"
|
|
src={`${base}/image/${props.ID}`}
|
|
/>
|
|
</A>
|
|
);
|
|
};
|