mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-10-23 18:23:15 +02:00
21 lines
549 B
TypeScript
21 lines
549 B
TypeScript
|
/**
|
||
|
* Stateless button that represents something that has been purchased.
|
||
|
*/
|
||
|
import * as React from "react";
|
||
|
|
||
|
interface IStdButtonPurchasedProps {
|
||
|
onClick?: (e: React.MouseEvent<HTMLElement>) => any;
|
||
|
style?: object;
|
||
|
text: string;
|
||
|
}
|
||
|
|
||
|
export class StdButtonPurchased extends React.Component<IStdButtonPurchasedProps, any> {
|
||
|
render() {
|
||
|
return (
|
||
|
<button className={"std-button-bought"} onClick={this.props.onClick} style={this.props.style}>
|
||
|
{this.props.text}
|
||
|
</button>
|
||
|
)
|
||
|
}
|
||
|
}
|