21 lines
453 B
JavaScript
21 lines
453 B
JavaScript
// @flow
|
|
import React from 'react';
|
|
import { Modal } from 'modal/modal';
|
|
import SyncToggleFlow from 'component/syncEnableFlow';
|
|
|
|
type Props = {
|
|
closeModal: () => void,
|
|
mode: string,
|
|
};
|
|
|
|
const ModalSyncEnable = (props: Props) => {
|
|
const { closeModal, mode } = props;
|
|
|
|
return (
|
|
<Modal isOpen type="card" onAborted={closeModal}>
|
|
<SyncToggleFlow closeModal={closeModal} mode={mode} />
|
|
</Modal>
|
|
);
|
|
};
|
|
|
|
export default ModalSyncEnable;
|