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/Indicators/Bomb.tsx
T
2023-11-02 12:11:03 +01:00

14 lines
352 B
TypeScript

import { Player } from "csgogsi";
import { Bomb as BombIcon } from "./../../assets/Icons";
const Bomb = ({ player }: { player: Player }) => {
if (Object.values(player.weapons).every((weapon) => weapon.type !== "C4")) {
return null;
}
return (
<div className={`armor_indicator`}>
<BombIcon />
</div>
);
};
export default Bomb;