I have created a Modal with Antdesign and want to call a function which logs the user out when he confirms the logout on the Modal pop up. When I look at the API of Antdesig