import React from 'react' import Image from 'next/image' type PropsType = { alt?: string h: number host?: string onClick?: () => void preview: string src: string w: number } export default function GHImage({ host, src, preview, w, h, alt = '', onClick, }: PropsType) { const actualSrc = host ? `https://${host}/${src}` : `/${src}` return ( {alt} ) }