mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-10-23 18:23:15 +02:00
19 lines
439 B
TypeScript
19 lines
439 B
TypeScript
|
/**
|
||
|
* React Component for a button that initiates a transaction on the Stock Market UI
|
||
|
* (Buy, Sell, Buy Max, etc.)
|
||
|
*/
|
||
|
import * as React from "react";
|
||
|
|
||
|
type IProps = {
|
||
|
onClick: () => void;
|
||
|
text: string;
|
||
|
}
|
||
|
|
||
|
export function StockTickerTxButton(props: IProps): React.ReactElement {
|
||
|
return (
|
||
|
<button className={"stock-market-input std-button"} onClick={props.onClick}>
|
||
|
{props.text}
|
||
|
</button>
|
||
|
)
|
||
|
}
|