mirror of
https://github.com/lexogrine/cs2-react-hud.git
synced 2025-12-10 02:42:49 +01:00
18 lines
402 B
TypeScript
18 lines
402 B
TypeScript
import React from "react";
|
|
import { PhaseRaw } from "csgogsi-socket";
|
|
|
|
interface IProps {
|
|
phase: PhaseRaw | null
|
|
}
|
|
|
|
export default class Pause extends React.Component<IProps> {
|
|
render() {
|
|
const { phase } = this.props;
|
|
return (
|
|
<div id={`pause`} className={phase && phase.phase === "paused" ? 'show' : ''}>
|
|
PAUSE
|
|
</div>
|
|
);
|
|
}
|
|
}
|