import { CloudUploadOutlined, LoadingOutlined, QuestionCircleOutlined } from "@ant-design/icons"; import type { ChangeEvent, RefObject } from "react"; import { EcommerceProgressBar } from "../EcommerceProgressBar"; interface EcommerceTryOnPanelProps { garmentInputRef: RefObject; garmentImages: Array<{ id: string; src: string; name: string }>; modelSource: string; modelGender: string; modelAge: string; modelEthnicity: string; modelBody: string; appearance: string; selectedScenes: string[]; customScene: string; smartScene: boolean; tryOnRatio: string; tryOnStatus: string; canGenerateTryOn: boolean; tryOnPrimaryLabel: string; tryOnModelOptions: { gender: string[]; age: string[]; ethnicity: string[]; body: string[] }; tryOnAssets: { modelWoman: string; modelMan: string; modelAsian: string }; tryOnScenes: string[]; tryOnRatioOptions: string[]; handleGarmentUpload: (event: ChangeEvent) => void; setModelSource: (value: "ai" | "library") => void; setModelGender: (value: string) => void; setModelAge: (value: string) => void; setModelEthnicity: (value: string) => void; setModelBody: (value: string) => void; setAppearance: (value: string) => void; handleGenerateModel: () => void; toggleScene: (scene: string) => void; setCustomScene: (value: string) => void; setSmartScene: (updater: (current: boolean) => boolean) => void; setTryOnRatio: (value: string) => void; handleTryOnGenerate: () => void; } export default function EcommerceTryOnPanel({ garmentInputRef, garmentImages, modelSource, modelGender, modelAge, modelEthnicity, modelBody, appearance, selectedScenes, customScene, smartScene, tryOnRatio, tryOnStatus, canGenerateTryOn, tryOnPrimaryLabel, tryOnModelOptions, tryOnAssets, tryOnScenes, tryOnRatioOptions, handleGarmentUpload, setModelSource, setModelGender, setModelAge, setModelEthnicity, setModelBody, setAppearance, handleGenerateModel, toggleScene, setCustomScene, setSmartScene, setTryOnRatio, handleTryOnGenerate, }: EcommerceTryOnPanelProps) { return ( <>

服装图片

{garmentImages.length ? (
{garmentImages.map((item) => (
{item.name}
))}
) : null}

模特形象

{modelSource === "ai" ? ( <>