import React from 'react';
import { MemoryRouter } from 'react-router-dom';
import { DashboardModal } from './DashboardModal';
import { getWindowConfirmation } from '../../core/utils/getWindowConfirmation';
import { useProperty } from '../hooks/useProperty';
import { getStyleForTopLevelComponent } from '../../core/utils/getStyleForTopLevelComponent';
export var ManualDashboard = function (_a) {
    var walletService = _a.walletService, isVisible = _a.isVisible, onClose = _a.onClose, className = _a.className;
    return (React.createElement("div", { className: getStyleForTopLevelComponent(className) },
        React.createElement(MemoryRouter, { initialEntries: ['/dashboard/funds'], getUserConfirmation: getWindowConfirmation }, useProperty(isVisible) && (React.createElement(DashboardModal, { walletService: walletService, onClose: onClose })))));
};
//# sourceMappingURL=ManualDashboard.js.map