import React from 'react'; import Weapon from './../Weapon/Weapon'; import flash_assist from './../../assets/flash_assist.png'; import { C4, Defuse, FlashedKill, Headshot, NoScope, SmokeKill, Suicide, Wallbang } from "./../../assets/Icons" import { ExtendedKillEvent, BombEvent } from "./Killfeed" const Kill = ({event}: { event: ExtendedKillEvent | BombEvent }) => { if (event.type !== "kill") { return (
{event.player.name}
{event.type === "plant" ? : }
{event.type === "plant" ? "planted the bomb" : "defused the bomb"}
) } let weapon = ; if(event.killer === event.victim) { weapon = ; } else if(event.weapon === 'planted_c4'){ weapon = } return (
{event.attackerblind ? : null} {event.killer ?
{event.killer.name}
: null} {event.assister ?
+
{event.flashed ? {'[FLASH]'} : null}
{event.assister.name}
: ''}
{weapon} {event.thrusmoke ? : null} {event.noscope ? : null} {event.wallbang ? : null} {event.headshot ? : null}
{event.victim.name}
); } export default Kill;