22 lines
416 B
TypeScript
22 lines
416 B
TypeScript
import { Button } from "antd";
|
|
import ipcTypes from "../../../../util/ipcTypes.json";
|
|
|
|
const Home: React.FC = () => {
|
|
return (
|
|
<div>
|
|
<h1>Home</h1>
|
|
<Button
|
|
onClick={(): void => {
|
|
window.electron.ipcRenderer.send(
|
|
ipcTypes.toMain.debug.decodeEstimate,
|
|
);
|
|
}}
|
|
>
|
|
Test Decode Estimate
|
|
</Button>
|
|
</div>
|
|
);
|
|
};
|
|
|
|
export default Home;
|