export const channels = {} as Record<string, any>;

// export const addChannel = (id: string, action: any) => {
//   (window as any).channels = (window as any).channels || {};
//   (window as any).channels[id] = action;
// };

// export const getChannel = (id: string): ((...args: any) => Promise<any>) => {
//   return (window as any).channels[id];
// };
