+
+
+ {RARITIES.map((r) => (
+
+ ))}
+
+ {error &&
{error}
}
+ {loading &&
Chargement…
}
+ {page && !loading && (
+ <>
+ {page.cards.length === 0 ? (
+
Aucune carte. Ouvre un booster pour commencer ta collection.
+ ) : (
+
+ {page.cards.map((card) => (
+
+ ))}
+
+ )}
+
+
+ {pageNum} / {Math.max(1, Math.ceil(page.total / 24))}
+
+
+ >
+ )}
+
+ );
+}
+
+function GraveyardView() {
+ const mx = useMatrixClient();
+ const controller = useMemo