import React, { useRef, useState } from 'react'; import { Button, Divider, Space, Tour } from 'antd'; import type { TourProps } from 'antd'; import { EllipsisOutlined } from '@ant-design/icons'; const App: React.FC = () => { const ref1 = useRef(null); const ref2 = useRef(null); const ref3 = useRef(null); const [open, setOpen] = useState(false); const steps: TourProps['steps'] = [ { title: 'Upload File', description: 'Put your files here.', cover: ( tour.png ), target: () => ref1.current, }, { title: 'Save', description: 'Save your changes.', target: () => ref2.current, }, { title: 'Other Actions', description: 'Click to see other actions.', target: () => ref3.current, }, ]; return ( <>