import React, { useState, useEffect } from 'react'; import { Input, Button, Card, Typography, Space, Alert } from 'antd'; import { useParams } from 'react-router-dom'; import {ImageViewer} from '@/components/ImageUploader'; const { Title, Text } = Typography; const CustomerImageViewer = () => { const [ossKey, setOssKey] = useState(''); const [showUploader, setShowUploader] = useState(false); const { key } = useParams(); useEffect(() => { console.log(key); // const key = `temp/tour-guide/2025-6/31278`; setOssKey(key); setShowUploader(true); }, []); return (