import * as React from 'react'; import Dialog from '@joplin/lib/components/Dialog'; import { _ } from '@joplin/lib/locale'; interface Props { message: string; hasCloseButton: boolean; onClose: ()=> void; } const ModalMessageOverlay: React.FC = ({ message, hasCloseButton, onClose }) => { let brIndex = 1; const lines = message.split('\n').map((line: string) => { if (!line.trim()) return
; return
{line}
; }); return
{!hasCloseButton &&
}
{lines}
{hasCloseButton &&
}
; }; export default ModalMessageOverlay;