const { contextBridge, ipcRenderer } = require('electron')

contextBridge.exposeInMainWorld('fabricDesktop', {
  getConfig: () => ipcRenderer.invoke('fabric:config:get'),
  setConfig: (next) => ipcRenderer.invoke('fabric:config:set', next),
  notify: (title, body) => ipcRenderer.invoke('fabric:notify', { title, body }),
})
