1 import React from "react"; 2 import { useFileUrl } from "../../hooks/useFileUrl"; 3 4 export function ImageView(props: { cid: string; }) { 5 const url = useFileUrl(props.cid); 6 return <img src={url.value} />; 7 }