import { assetPath } from "../utils.js"; export function DamageTable({ rows, t }) { if (!rows.length) return null; const columns = Object.keys(rows[0]); return (
{columns.map((column) => ( ))} {rows.map((row, rowIndex) => ( {columns.map((column) => column === "name" ? ( ) : ( ))} ))}
{column === "name" ? "" : {t(column,}
{t(row[column], { capitalize: true })}{`${row[column]}
); }