-
+
diff --git a/app/features/tournament/routes/to.$id.register.tsx b/app/features/tournament/routes/to.$id.register.tsx
index d1df10b9e..ba6211ae2 100644
--- a/app/features/tournament/routes/to.$id.register.tsx
+++ b/app/features/tournament/routes/to.$id.register.tsx
@@ -16,8 +16,12 @@ import { containerClassName } from "~/components/Main";
import { SubmitButton } from "~/components/SubmitButton";
import { Config } from "~/config";
import { useUser } from "~/features/auth/core/user";
-import { MapPool } from "~/features/map-list-generator/core/map-pool";
-import { ModeMapPoolPicker } from "~/features/settings/components/ModeMapPoolPicker";
+import {
+ type CounterPickMapPool,
+ CounterPickMapPoolPicker,
+ MapPoolValidationStatusMessage,
+ useCounterPickMapPoolValidationStatus,
+} from "~/features/tournament/components/CounterPickMapPoolPicker";
import { useTournament } from "~/features/tournament/tournament-context";
import type { TournamentTeamFull } from "~/features/tournament-bracket/core/Tournament.server";
import { FormField } from "~/form/FormField";
@@ -26,7 +30,6 @@ import { useDateTimeFormat } from "~/hooks/intl/useDateTimeFormat";
import { useAutoRerender } from "~/hooks/useAutoRerender";
import { useCopyToClipboard } from "~/hooks/useCopyToClipboard";
import { useHydrated } from "~/hooks/useHydrated";
-import { rankedModesShort } from "~/modules/in-game-lists/modes";
import {
LOG_IN_URL,
SENDOU_INK_BASE_URL,
@@ -37,7 +40,6 @@ import { action } from "../actions/to.$id.register.server";
import type { TournamentRegisterPageLoader } from "../loaders/to.$id.register.server";
import { loader } from "../loaders/to.$id.register.server";
import styles from "../tournament.module.css";
-import { TOURNAMENT } from "../tournament-constants";
import {
type RegisterTeamFormValues,
registerTeamFormSchema,
@@ -48,10 +50,6 @@ import {
deleteTeamMemberSchema,
updateMapPoolSchema,
} from "../tournament-schemas";
-import {
- type CounterPickValidationStatus,
- validateCounterPickMapPool,
-} from "../tournament-utils";
export { action, loader };
@@ -228,7 +226,7 @@ function RegistrationForms({ readOnly = false }: { readOnly?: boolean }) {
<>
{tournament.teamsPrePickMaps ? (
-
+
) : null}
>
) : null}
@@ -256,7 +254,7 @@ function ReadOnlyRegistrationForms() {
{tournament.teamsPrePickMaps ? (
-
+
) : null}
);
@@ -916,7 +914,7 @@ function DeleteMember({ members }: { members: TournamentTeamFull["members"] }) {
);
}
-function CounterPickMapPoolPicker({
+function TeamCounterPickMapPoolPicker({
readOnly = false,
mapPool,
}: {
@@ -924,17 +922,13 @@ function CounterPickMapPoolPicker({
mapPool?: NonNullable