diff --git a/components/ProjectsTable.tsx b/components/ProjectsTable.tsx index ee3f328..0e8d7b5 100644 --- a/components/ProjectsTable.tsx +++ b/components/ProjectsTable.tsx @@ -64,6 +64,20 @@ export default function ProjectTable({ { label: "Tags", icon: Tag }, ]; +function resolveWorldId(monde: Project["monde"]): string { + switch (monde) { + case "Overworld": + return "world"; + case "Nether": + return "world_nether"; + case "End": + return "world_the_end"; + default: + return "world"; // fallback + } +} + + if (!data.length) { return

Aucun projet enregistré pour le moment.

; } @@ -167,7 +181,7 @@ export default function ProjectTable({ {p.coords} {p.coords && (