22 lines
453 B
React
22 lines
453 B
React
|
// @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;
|