22 lines
533 B
TypeScript
22 lines
533 B
TypeScript
import type { ZodResolvedFileContent } from "~/utils/clickhouse/common";
|
|
|
|
export default function ImageBlock({
|
|
image,
|
|
}: {
|
|
image: ZodResolvedFileContent;
|
|
}) {
|
|
return (
|
|
<div className="w-60 rounded bg-slate-100 p-2 text-xs text-slate-300">
|
|
<div className="mb-2">Image</div>
|
|
<a
|
|
href={image.file.data}
|
|
target="_blank"
|
|
rel="noopener noreferrer"
|
|
download={"tensorzero_" + image.storage_path.path}
|
|
>
|
|
<img src={image.file.data} alt="Image" />
|
|
</a>
|
|
</div>
|
|
);
|
|
}
|