import React from 'react'; import { Button, Modal } from 'react-bootstrap'; import constants from 'utils/strings/constants'; interface Props { show: boolean; children?: any; onHide: () => void; attributes?: { title?: string; ok?: boolean; cancel?: { text: string }; proceed?: { text: string; action: any }; }; } export function MessageDialog({ attributes, children, ...props }: Props) { return ( {attributes.title && ( {attributes.title}
)} {children}
{attributes.ok && ( )} {attributes.cancel && ( )} {attributes.proceed && ( )}
); }