Options
All
  • Public
  • Public/Protected
  • All
Menu

Module "src/hooks/useLocalePromptPlugin"

Index

Functions

Const LocaleModal

  • LocaleModal(__namedParameters: { actions: { name: string; onClick: () => void }[]; message: undefined | string; onClose: () => void; title: string }): Element
  • Parameters

    • __namedParameters: { actions: { name: string; onClick: () => void }[]; message: undefined | string; onClose: () => void; title: string }
      • actions: { name: string; onClick: () => void }[]
      • message: undefined | string
      • onClose: () => void
          • (): void
          • Returns void

      • title: string

    Returns Element

Const defaultFunc

  • defaultFunc(): void
  • Returns void

Const useLocalePromptPlugin

  • useLocalePromptPlugin(condition: boolean, options?: Partial<Omit<ModalProps, "actions"> & { onNo: () => void; onYes: () => void }>): void
  • Parameters

    • condition: boolean
    • Optional options: Partial<Omit<ModalProps, "actions"> & { onNo: () => void; onYes: () => void }>

      The props that are given to the model

    Returns void

Generated using TypeDoc