mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-10-23 10:13:13 +02:00
19 lines
363 B
TypeScript
19 lines
363 B
TypeScript
|
import * as React from "react";
|
||
|
|
||
|
type IProps = {
|
||
|
onMouseEnter?: () => void;
|
||
|
onClick?: () => void;
|
||
|
color: string;
|
||
|
};
|
||
|
|
||
|
export function Cell(cellProps: IProps) {
|
||
|
return (
|
||
|
<div
|
||
|
className="staneksgift_cell"
|
||
|
style={{ backgroundColor: cellProps.color }}
|
||
|
onMouseEnter={cellProps.onMouseEnter}
|
||
|
onClick={cellProps.onClick}
|
||
|
/>
|
||
|
);
|
||
|
}
|