mirror of
https://git.rezel.net/LudoTech/traque.git
synced 2026-02-09 10:20:16 +01:00
22 lines
774 B
JavaScript
22 lines
774 B
JavaScript
"use client";
|
|
import GameSettings from "@/components/admin/gameSettings";
|
|
import PenaltySettings from "@/components/admin/penaltySettings";
|
|
import { useAdminConnexion } from "@/context/adminConnexionContext";
|
|
import dynamic from "next/dynamic";
|
|
|
|
// Imported at runtime and not at compile time
|
|
const ZoneSelector = dynamic(() => import('@/components/admin/polygonZoneMap'), { ssr: false });
|
|
|
|
export default function AdminPage() {
|
|
const { useProtect } = useAdminConnexion();
|
|
useProtect();
|
|
return (
|
|
<div className='min-h-full bg-gray-200 p-10 flex flex-row content-start gap-5'>
|
|
<div className="h-full w-2/6">
|
|
<GameSettings />
|
|
</div>
|
|
<ZoneSelector />
|
|
<PenaltySettings />
|
|
</div>
|
|
)
|
|
} |