import type { RefObject } from 'react'; import { motion } from 'motion/react'; import { ImagePlus, Loader2, X } from 'lucide-react'; import type { FeedbackType, UploadedImg } from './types'; const MODULE_LABELS: Record = { assets: '资产管理', mileage: '里程管理', energy: '能源管理', scheduling: '智能调度', ele: '充电导入', '': '通用', }; function getPlaceholder(type: FeedbackType | null): string { if (type === 'dimension') return '比如:希望按客户/区域/日期范围 等等切片看里程数据…'; if (type === 'bug') return '比如:氢能页面 04-28 嘉燃经开站显示 153.81,但…(可粘贴截图)'; if (type === 'ux') return '比如:能不能把外部 tab 默认收起,加载快一点…'; return '随便聊聊你的想法'; } interface Props { content: string; error: string | null; fileRef: RefObject; maxScreenshots: number; module: string; screenshots: UploadedImg[]; textareaRef: RefObject; type: FeedbackType | null; uploading: boolean; onAddFiles: (files: FileList | File[]) => void | Promise; onChangeContent: (content: string) => void; onChangeModule: (module: string) => void; onRemoveScreenshot: (index: number) => void; } export default function FeedbackFormStep({ content, error, fileRef, maxScreenshots, module, screenshots, textareaRef, type, uploading, onAddFiles, onChangeContent, onChangeModule, onRemoveScreenshot, }: Props) { return (

说说具体内容