Арена CodeZilla
+Арена CodZilla
Выбери задачу, напиши оптимальный код и разгроми соперника
diff --git a/src/pages/DraftPage.jsx b/src/pages/DraftPage.jsx new file mode 100644 index 0000000..3cdc3ae --- /dev/null +++ b/src/pages/DraftPage.jsx @@ -0,0 +1,141 @@ +import React from 'react'; +import { useParams } from 'react-router-dom'; +import { useMatchSession } from './useMatchSession.js'; + +const DraftPage = () => { + + const { matchId } = useParams(); + const { sessionData, sendBan, isConnected } = useMatchSession(matchId); + + if (!isConnected) returnDraft Session #{matchId.substring(0, 8)}
+{category}
+Опций не осталось
+ )} +