import { Fragment } from "react"; import { Chip, Text } from "@siteground/styleguide"; import "./styles.scss"; import { useGetImage } from "@/chat/hooks/use-get-image"; import { translate } from "i18n-calypso"; interface ImagePreviewProps { imageUrl: string; alt: string; generatedBy?: string; className?: string; } export const ImagePreview = ({ imageUrl, alt, generatedBy, className }: ImagePreviewProps) => { const { image, isLoading } = useGetImage(imageUrl); return ( <> {!isLoading && (