Files
openchamber/packages/web/src/mini-chat-main.tsx
T

18 lines
530 B
TypeScript
Raw Normal View History

import { createWebAPIs } from './api';
import type { RuntimeAPIs } from '@openchamber/ui/lib/api/types';
import '@openchamber/ui/index.css';
import '@openchamber/ui/styles/fonts';
declare global {
interface Window {
__OPENCHAMBER_RUNTIME_APIS__?: RuntimeAPIs;
}
}
window.__OPENCHAMBER_RUNTIME_APIS__ = createWebAPIs();
void import('@openchamber/ui/apps/renderElectronMiniChatApp')
.then(({ renderElectronMiniChatApp }) => {
renderElectronMiniChatApp(window.__OPENCHAMBER_RUNTIME_APIS__ ?? createWebAPIs());
});