mirror of
https://github.com/lexogrine/cs2-react-hud.git
synced 2025-12-10 03:52:48 +01:00
16 lines
473 B
TypeScript
16 lines
473 B
TypeScript
import React from 'react';
|
|
import { Player } from 'csgogsi-socket';
|
|
import {Bomb as BombIcon} from './../../assets/Icons';
|
|
export default class Bomb extends React.Component<{ player: Player }> {
|
|
render() {
|
|
const { player } = this.props;
|
|
if(Object.values(player.weapons).every(weapon => weapon.type !== "C4")) return '';
|
|
return (
|
|
<div className={`armor_indicator`}>
|
|
<BombIcon />
|
|
</div>
|
|
);
|
|
}
|
|
|
|
}
|