react-hook-dialog
react-hook-dialog copied to clipboard
Props are not type safe
const dialogs = createDialogs({
firstDialog: { one: '' },
secondDialog: { two: '', three: '' },
});
const { open } = dialog.useDialog('firstDialog')
open({ })
// ^ { one?: string, two?: string, three?: string }