refine
refine copied to clipboard
[FEAT] useDrawer hook for Ant Design
Is your feature request related to a problem? Please describe.
Antd currently has useDrawerForm which works for creating/editing/cloning, but I often use drawers for showing too. I don't want to manage the Drawer component myself because I'm trying to rely on Refine as much as possible.
Describe alternatives you've considered
Alternative solutions: manage the Drawer component myself or just use modals for all my show views.
Additional context
We already have a precedent for this paradigm with useModal/useModalForm. Also the code is already there in useDrawerForm, it just needs to be refactored to expose useDrawer separately and then it can be imported into useDrawerForm.
Describe the thing to improve
It would be nice to have a useDrawer hook for helping me manage the Ant Design Drawer component.