import React, { useState } from 'react' import { Button, Drawer } from 'react-icecream' export default function Demo() { const [visible, setVisible] = useState(false) async function handleOk() { await new Promise(r => setTimeout(() => r(), 3000)) setVisible(false) } return ( <> setVisible(false)} >

Some contents...

Some contents...

Some contents...

) }