import { EllipsisOutlined } from '@ant-design/icons'; import React, { useRef, useState } from 'react'; import type { TourProps } from 'antd'; import { Button, Divider, Space, Tour } from 'antd'; 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.', 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 ( <>