1
0
mirror of https://github.com/lexogrine/cs2-react-hud.git synced 2026-05-03 19:53:11 +02:00
Files
cs2-react-hud-lexogrine/src/HUD/Radar/Radar.tsx
T
2023-11-02 12:11:03 +01:00

20 lines
510 B
TypeScript

import { CSGO } from "csgogsi";
import LexoRadarContainer from './LexoRadar/LexoRadarContainer';
interface Props { radarSize: number, game: CSGO }
const Radar = ({ radarSize, game }: Props) => {
const { players, player, bomb, grenades, map } = game;
return <LexoRadarContainer
players={players}
player={player}
bomb={bomb}
grenades={grenades}
size={radarSize}
mapName={map.name.substring(map.name.lastIndexOf('/')+1)}
/>
}
export default Radar;