import { Table } from "antd"; import { observer } from "mobx-react"; import React from "react"; import { Item } from "../../domain"; import { huntOptimizerStore, OptimizationResult } from "../../stores/HuntOptimizerStore"; @observer export class OptimizationResultComponent extends React.Component { render() { const items = new Set(); for (const r of huntOptimizerStore.result) { for (const i of r.itemCounts.keys()) { items.add(i); } } return (

Optimization Result

index.toString()} size="small" scroll={{ x: true, y: true }} > {[...items].map(item => title={item.name} key={item.name} render={(_, result) => { const count = result.itemCounts.get(item); return count && count.toFixed(2); }} /> )}
); } private fixed1(time: number): string { return time.toFixed(1); } }