Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
,
attachTo
);
}
ModalDialogComponent.defaultProps = {
attachTo: typeof document !== 'undefined' ? document.body : null,
closeOnBlanketClick: false,
component: 'div',
width: 640,
};
const ModalDialog = memo(ModalDialogComponent);
export default withTransitionState(ModalDialog);
<title>{heading}</title>
) : null}
{children}
{footer ? <footer>{footer}</footer> : null}
,
attachTo
);
}
}
export default withTransitionState(ModalDialog);
<dialog width="{width}">
{children}
</dialog>
,
attachTo
);
}
}
export default withTransitionState(ModalConfirm);