- useActionModal<Data, Payload, Field, Param>(params): {
open: boolean;
pickData: ((param?: Param) => void);
render: (() => Element);
} Type Parameters
- Data extends unknown = any
- Payload extends unknown = any
- Field = IField<Data, any>
- Param = any
Returns {
open: boolean;
pickData: ((param?: Param) => void);
render: (() => Element);
}
- The state and render functions.
open: boolean
pickData: ((param?: Param) => void)
- (param?): void
Returns void
render: (() => Element)
- (): Element
Returns Element
Creates a hook for managing an action modal.