playball
Version:
Watch MLB games from the comfort of your terminal
12 lines • 487 B
JavaScript
import React from 'react';
import { useSelector } from "react-redux/lib/alternate-renderers.js";
import { selectLineScore } from "../features/games.js";
function InningDisplay() {
const linescore = useSelector(selectLineScore);
const content = [linescore.isTopInning ? '▲' : '', linescore.currentInning, linescore.isTopInning ? '' : '▼'].join('\n');
return /*#__PURE__*/React.createElement("box", {
content: content,
align: "right"
});
}
export default InningDisplay;