18 lines
552 B
TypeScript
18 lines
552 B
TypeScript
import { MapToaster } from "@/features/map/core";
|
|
import { MapWorkbenchPage } from "@/features/workbench";
|
|
import type { Authentication } from "@/shared/auth/keycloak-auth";
|
|
import { AppProviders } from "./providers";
|
|
|
|
export function App({ authentication }: { authentication: Authentication }) {
|
|
return (
|
|
<AppProviders>
|
|
<MapWorkbenchPage
|
|
user={authentication.user ?? undefined}
|
|
onLogout={authentication.logout}
|
|
getAccessToken={authentication.getAccessToken}
|
|
/>
|
|
<MapToaster />
|
|
</AppProviders>
|
|
);
|
|
}
|