2021-08-19 07:45:26 +02:00
|
|
|
import React from "react";
|
2021-06-18 22:22:12 +02:00
|
|
|
import { OperationElem } from "./OperationElem";
|
2021-08-16 04:35:43 +02:00
|
|
|
import { IBladeburner } from "../IBladeburner";
|
2021-06-18 22:22:12 +02:00
|
|
|
|
|
|
|
interface IProps {
|
2021-09-05 01:09:30 +02:00
|
|
|
bladeburner: IBladeburner;
|
2021-06-18 22:22:12 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
export function OperationList(props: IProps): React.ReactElement {
|
2021-09-05 01:09:30 +02:00
|
|
|
const names = Object.keys(props.bladeburner.operations);
|
|
|
|
const operations = props.bladeburner.operations;
|
|
|
|
return (
|
|
|
|
<>
|
|
|
|
{names.map((name: string) => (
|
2022-09-06 15:07:12 +02:00
|
|
|
<OperationElem key={name} bladeburner={props.bladeburner} action={operations[name]} />
|
2021-09-05 01:09:30 +02:00
|
|
|
))}
|
|
|
|
</>
|
|
|
|
);
|
|
|
|
}
|