32 lines
683 B
TypeScript
32 lines
683 B
TypeScript
function BaseVal({ skillRank, stat }) {
|
|
if (skillRank === "---") {
|
|
return <td>---</td>
|
|
} else {
|
|
return (<td>{skillRank + stat}</td>)
|
|
}
|
|
}
|
|
|
|
export function SkillRow({ skillName, skillRank, stat }) {
|
|
return (
|
|
<tr>
|
|
<td>{skillName}</td>
|
|
<td>{skillRank}</td>
|
|
<td>{stat}</td>
|
|
<BaseVal skillRank={skillRank} stat={stat} />
|
|
</tr>
|
|
);
|
|
}
|
|
|
|
export function SkillHeader({skillGroup}) {
|
|
return (
|
|
<thead>
|
|
<tr>
|
|
<th style={{ width: "70%" }}>{skillGroup}</th>
|
|
<th style={{ width: "10%" }}>RANKS</th>
|
|
<th style={{ width: "10%" }}>STAT</th>
|
|
<th style={{ width: "10%" }}>BASE</th>
|
|
</tr>
|
|
</thead>
|
|
)
|
|
}
|