import { CloudUploadOutlined, CloseOutlined, FileImageOutlined, SettingOutlined } from "@ant-design/icons"; import type { ChangeEvent, DragEvent, RefObject } from "react"; type ProductSetOutputKey = "set" | "detail" | "model" | "video"; interface EcommerceSetPanelProps { setInputRef: RefObject; setImages: Array<{ id: string; src: string; name: string }>; isSetUploadDragging: boolean; productSetOutputOptions: Array<{ key: ProductSetOutputKey; label: string }>; productSetOutput: ProductSetOutputKey; platformOptions: string[]; marketOptions: string[]; productSetLanguageOptions: string[]; productSetRatioOptions: string[]; productSetPlatform: string; productSetMarket: string; productSetLanguage: string; productSetRatio: string; setIsSetUploadDragging: (value: boolean) => void; handleSetDrop: (event: DragEvent) => void; handleSetUpload: (event: ChangeEvent) => void; removeSetImage: (id: string) => void; handleProductSetOutputChange: (value: ProductSetOutputKey) => void; handleProductSetPlatformChange: (value: string) => void; handleProductSetMarketChange: (value: string) => void; setProductSetLanguage: (value: string) => void; setProductSetRatio: (value: string) => void; formatRatioDisplayValue: (value: string) => string; } export default function EcommerceSetPanel({ setInputRef, setImages, isSetUploadDragging, productSetOutputOptions, productSetOutput, platformOptions, marketOptions, productSetLanguageOptions, productSetRatioOptions, productSetPlatform, productSetMarket, productSetLanguage, productSetRatio, setIsSetUploadDragging, handleSetDrop, handleSetUpload, removeSetImage, handleProductSetOutputChange, handleProductSetPlatformChange, handleProductSetMarketChange, setProductSetLanguage, setProductSetRatio, formatRatioDisplayValue, }: EcommerceSetPanelProps) { return ( <>

上传商品原图

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

生成设置

生成内容
{productSetOutputOptions.map((option) => ( ))}
基础设置
); }