2021-12-29 02:13:49 +00:00
|
|
|
import React from "react"
|
|
|
|
import ReactDOM from "react-dom"
|
2021-12-29 16:31:14 +00:00
|
|
|
import styled from "styled-components"
|
2021-12-29 02:13:49 +00:00
|
|
|
|
|
|
|
interface StatPoolProps {
|
|
|
|
name: string;
|
|
|
|
value: number;
|
|
|
|
max: number;
|
|
|
|
edge: number;
|
|
|
|
}
|
|
|
|
|
2021-12-29 16:31:14 +00:00
|
|
|
const StatPool = styled.div`
|
|
|
|
border: 1px solid black;
|
|
|
|
`
|
|
|
|
|
|
|
|
const render = ({ name, value, max, edge }: StatPoolProps) => (<StatPool>
|
2021-12-29 02:13:49 +00:00
|
|
|
<div>{value} / {max}</div> <div>{edge}</div>
|
2021-12-29 16:31:14 +00:00
|
|
|
</StatPool>)
|
2021-12-29 02:13:49 +00:00
|
|
|
|
2021-12-29 16:31:14 +00:00
|
|
|
export default render
|