import { AccountModal } from './AccountModal';
import { ConnectionsModal } from './ConnectionsModal';
import { HelpModal } from './HelpModal';
import { SettingsModal } from './SettingsModal';

export function AppModals({ activeModal, onClose, onResetWindows }) {
  if (!activeModal) return null;

  if (activeModal === 'connections') {
    return <ConnectionsModal onClose={onClose} />;
  }

  if (activeModal === 'settings') {
    return <SettingsModal onClose={onClose} onResetWindows={onResetWindows} />;
  }

  if (activeModal === 'help') {
    return <HelpModal onClose={onClose} />;
  }

  if (activeModal === 'account') {
    return <AccountModal onClose={onClose} />;
  }

  return null;
}
