1
0
mirror of https://github.com/lexogrine/dota2-react-hud.git synced 2026-05-04 12:33:11 +02:00
Files
dota2-react-hud/src/HUD/Layout/Layout.tsx
T
Hubert Walczak 9c95656cd2 Fixed naming
2021-07-23 10:57:33 +02:00

38 lines
718 B
TypeScript

import { Dota2 } from "dotagsi";
import React from "react";
import { Match } from "../../api/interfaces";
import MatchBar from "../MatchBar/MatchBar";
import SeriesBox from "../MatchBar/SeriesBox";
import Observed from "./../Players/Observed";
interface Props {
game: Dota2,
match: Match | null
}
export default class Layout extends React.Component<Props> {
componentDidMount() {
}
render() {
const { game, match } = this.props;
return (
<div className="layout">
<MatchBar map={game.map} match={match} time={game.map.clock_time} players={game.players} />
<SeriesBox map={game.map} match={match} />
<Observed player={game.player}/>
</div>
);
}
}