kaiqiu-rank-list/src/page/EventPage.tsx
kyuuseiryuu 2f82a4edf5 feat(Profile)
- add react-router
2026-01-28 13:00:48 +09:00

12 lines
401 B
TypeScript

import { useLoaderData, useNavigate } from "react-router";
import { GamePanel } from "../components/GamePanel";
import type { MatchInfo } from "../types";
export default function EventPage() {
const game = useLoaderData<MatchInfo>();
return (
<div style={{ width: '100%', padding: 10, boxSizing: 'border-box' }}>
<GamePanel title={game.title} players={game.players} />
</div>
);
}