'init'
This commit is contained in:
7
app/hooks/useNotification.ts
Normal file
7
app/hooks/useNotification.ts
Normal file
@@ -0,0 +1,7 @@
|
||||
export function useNotification() {
|
||||
const show = (title : string, body : string) => {
|
||||
window.electron.ipcRenderer.invoke('notification:show', title, body);
|
||||
}
|
||||
|
||||
return show;
|
||||
}
|
||||
Reference in New Issue
Block a user