Files
imexrps/src/components/molecules/watcher-stop/watcher-stop.molecule.jsx
2024-04-18 09:29:00 -07:00

17 lines
371 B
JavaScript

import { Button } from "antd";
import React from "react";
import ipcTypes from "../../../ipc.types";
const { ipcRenderer } = window;
export default function WatcherStopMolecule() {
const handleClick = () => {
ipcRenderer.send(ipcTypes.fileWatcher.toMain.stop);
};
return (
<div>
<Button onClick={handleClick}>Stop Watcher</Button>
</div>
);
}