bitburner-src/src/CotMG/ui/Cell.tsx

19 lines
363 B
TypeScript
Raw Normal View History

2021-09-25 23:21:50 +02:00
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}
/>
);
}