import { Route, Routes } from 'react-router-dom';
import './App.css';
import { ApolloConnection } from './components/shared/apollo-connection';
import { Accounts } from './components/layouts/accounts';
import { Admin } from './components/layouts/admin';
import { Members } from './components/layouts/members';
import { Root } from './components/layouts/root';
import { Staff } from './components/layouts/staff';
import { AuthLanding } from './components/shared/auth-landing';
import RequireAuth from './components/shared/require-auth';
import { AHPProofOfConcepts, AHPRootRouteLayer } from './components/layouts/ahp-proof-of-concepts';
import { AuthProvider } from 'react-oidc-context';
import { uiConfig, staffConfig } from './config/odic-config';
import MaintenanceMessageProvider from './components/shared/maintenance-message';
import { useFeatureFlags } from './components/shared/feature-flag-react-lite';
function App() {
const { GetFeatureFlagByName } = useFeatureFlags();
let maintenanceInfo = {
impendingMaintenanceStartTimestamp: GetFeatureFlagByName('MAINTENANCE_TIMESTAMP_IMPENDING_UIPORTAL'),
maintenanceStartTimestamp: GetFeatureFlagByName('MAINTENANCE_START_TIMESTAMP_UIPORTAL'),
maintenanceEndTimestamp: GetFeatureFlagByName('MAINTENANCE_END_TIMESTAMP_UIPORTAL'),
upcomingMaintenance: GetFeatureFlagByName('MAINTENANCE_UPCOMING_UIPORTAL'),
impendingMessage: GetFeatureFlagByName('MAINTENANCE_MSG_IMPENDING_UIPORTAL'),
maintenanceMessage: GetFeatureFlagByName('MAINTENANCE_MSG_SYSTEM_UIPORTAL'),
timeoutBeforeMaintenance: import.meta.env.VITE_TIMEOUT_BEFORE_MAINTENANCE ?? 120
};
const authSection = (
);
const rootSection = (
);
const communitySection = (
} />
} />
} />
} />
} />
);
const staffSection = (
} />
);
return (
);
}
export default App;