ModalComponentWithOptions

Interface for a React component containing its props and the modalOption static property.

Note: Only use with Hooks modal components (present in your createModalStack()'s config). If you're working with a Class modal component, you can directly use static modalOptions: ModalOptions.

export type ModalComponentWithOptions<
  Props = unknown
> = React.ComponentType<Props> & {
  modalOptions?: ModalOptions
}

Last updated