// Root React Component for the Corporation UI import React from "react"; import { IPlayer } from "../../PersonObjects/IPlayer"; import { numeralWrapper } from "../../ui/numeralFormat"; import { Reputation } from "./Reputation"; interface IProps { player: IPlayer; } export function CharacterOverview(props: IProps): React.ReactElement { const intelligence = ( Int:  {numeralWrapper.formatSkill(props.player.intelligence)} ); const work = ( <> Work progress: +{Reputation(props.player.workRepGained)} rep ); return ( <> {props.player.intelligence >= 1 && intelligence} {props.player.isWorking && !props.player.focus && work}
HP: {numeralWrapper.formatHp(props.player.hp) + " / " + numeralWrapper.formatHp(props.player.max_hp)}
Money:  {numeralWrapper.formatMoney(props.player.money.toNumber())}
Hack:  {numeralWrapper.formatSkill(props.player.hacking_skill)}
Str:  {numeralWrapper.formatSkill(props.player.strength)}
Def:  {numeralWrapper.formatSkill(props.player.defense)}
Dex:  {numeralWrapper.formatSkill(props.player.dexterity)}
Agi:  {numeralWrapper.formatSkill(props.player.agility)}
Cha:  {numeralWrapper.formatSkill(props.player.charisma)}
); }