import React, { useRef, useState } from 'react'; import { EllipsisOutlined } from '@ant-design/icons'; import { Button, Divider, Space, Tour } from 'antd'; import type { TourProps } 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.', cover: ( tour.png ), target: () => ref1.current, }, { title: 'Save', description: 'Save your changes.', target: () => ref2.current, mask: { style: { boxShadow: 'inset 0 0 15px #fff', }, color: 'rgba(40, 0, 255, .4)', }, }, { title: 'Other Actions', description: 'Click to see other actions.', target: () => ref3.current, mask: false, }, ]; return ( <>