2022-05-22 09:57:06 +02:00
|
|
|
import {useTranslation} from "react-i18next";
|
2023-02-06 18:01:33 +01:00
|
|
|
import {Card} from "react-bootstrap";
|
2022-05-22 09:57:06 +02:00
|
|
|
import {FontAwesomeIcon as Fa} from "@fortawesome/react-fontawesome";
|
|
|
|
import {faCrosshairs} from "@fortawesome/free-solid-svg-icons";
|
|
|
|
import KillsTable from "../../table/KillsTable";
|
|
|
|
import React from "react";
|
2022-09-03 18:39:39 +02:00
|
|
|
import {CardLoader} from "../../navigation/Loader";
|
2022-05-22 09:57:06 +02:00
|
|
|
|
|
|
|
const PvpKillsTableCard = ({player_kills}) => {
|
|
|
|
const {t} = useTranslation();
|
2022-06-02 15:43:32 +02:00
|
|
|
|
2022-09-03 18:39:39 +02:00
|
|
|
if (!player_kills) return <CardLoader/>;
|
2022-06-02 15:43:32 +02:00
|
|
|
|
2022-05-22 09:57:06 +02:00
|
|
|
return (
|
|
|
|
<Card>
|
|
|
|
<Card.Header>
|
|
|
|
<h6 className="col-black">
|
|
|
|
<Fa icon={faCrosshairs} className="col-red"/> {t('html.label.recentPvpKills')}
|
|
|
|
</h6>
|
|
|
|
</Card.Header>
|
|
|
|
<KillsTable kills={player_kills}/>
|
|
|
|
</Card>
|
|
|
|
)
|
|
|
|
}
|
|
|
|
|
|
|
|
export default PvpKillsTableCard;
|