import { ResultComparison } from './ResultComparison'; import type { WidgetTranslations } from '../i18n'; import { SharePanel, type ShareIntentProperties } from './SharePanel'; interface ResultViewProps { resultImage: string; /** The shopper photo supplied to inference. */ originalPhotoImage?: string; originalClothingImage?: string; productTitle?: string; productUrl: string | null; brandName?: string | null; productImage?: string | null; productId: string; variantId?: string | null; runId?: string; onShareIntent: (properties: ShareIntentProperties) => void; onTryAnother: () => void; onClose: () => void; t: WidgetTranslations['result']; } function UploadIcon() { return ( ); } export function ResultView({ resultImage, originalPhotoImage, originalClothingImage, productTitle, productUrl, brandName, productImage, productId, variantId, runId, onShareIntent, onTryAnother, onClose, t, }: ResultViewProps) { return (
{productTitle && (
{t.tryingOn(productTitle)}
)}
); }