import * as React from 'react'; import Dialog from '../Dialog'; interface Props { message: string; } const ModalMessageOverlay: React.FC = ({ message }) => { let brIndex = 1; const lines = message.split('\n').map((line: string) => { if (!line.trim()) return
; return
{line}
; }); return
{lines}
; }; export default ModalMessageOverlay;