Спасибо за ваш ответ. Я пробовал это решение тоже. Тогда я получаю эту ошибку:
(property) SweetAlertOptions.title?: string | HTMLElement | JQuery<HTMLElement>
The title of the popup, as HTML. It can either be added to the object under the key title or passed as the first parameter of Swal.fire().
@default
''
No overload matches this call.
Overload 1 of 2, '(title?: string, html?: string, icon?: SweetAlertIcon): Promise<SweetAlertResult>', gave the following error.
Argument of type '{ title: JSX.Element; footer: string; onOpen: () => void; }' is not assignable to parameter of type 'string'.
Overload 2 of 2, '(options: SweetAlertOptions): Promise<SweetAlertResult>', gave the following error.
Type 'Element' is not assignable to type 'string | HTMLElement | JQuery<HTMLElement>'.
Type 'Element' is missing the following properties from type 'JQuery<HTMLElement>': jquery, length, add, addBack, and 134 more.ts(2769)
sweetalert2.d.ts(399, 5): The expected type comes from property 'title' which is declared here on type 'SweetAlertOptions'