import dynamic from "next/dynamic"; import { ZoneTypes } from "@/config/types"; // Imported at runtime and not at compile time const CircleZoneSelector = dynamic(() => import('./circleZoneSelector'), { ssr: false }); const PolygonZoneSelector = dynamic(() => import('./polygonZoneSelector'), { ssr: false }); function ZoneTypeButton({title, onClick, isSelected}) { const grayStyle = "bg-gray-300 hover:bg-gray-400"; const blueStyle = "bg-custom-light-blue"; return (

{title}

); } export default function PlayingZoneSelector({ display }) { return (

Type de zone :

{ /*setLocalZoneType(ZoneTypes.CIRCLE)*/ }} isSelected={ZoneTypes.POLYGON == ZoneTypes.CIRCLE} /> { /*setLocalZoneType(ZoneTypes.POLYGON)*/ }} isSelected={ZoneTypes.POLYGON == ZoneTypes.POLYGON} />
); }