diff --git a/src/modules/print-module.tsx b/src/modules/print-module.tsx
index b04f4c7..d6caf22 100644
--- a/src/modules/print-module.tsx
+++ b/src/modules/print-module.tsx
@@ -1,9 +1,11 @@
-import { declareModule, makeModalModule, React } from '@collboard/modules-sdk';
+import { React, declareModule, makeModalModule, makeMultiModule } from '@collboard/modules-sdk';
+import { Registration } from 'destroyable';
import { contributors, description, license, repository, version } from '../../package.json';
import { PrintComponent } from '../components/PrintComponent';
+import { ModuleInstallation } from '@collboard/modules-sdk/types/50-systems/ModuleStore/ModuleInstallation';
declareModule(
- makeModalModule({
+ makeMultiModule({
manifest: {
name: '@collboard/print',
title: { en: 'Print', cs: 'Tisk' },
@@ -16,16 +18,36 @@ declareModule(
isHidden: true /* <- TODO: Modal modules should be always hidden*/,
},
},
- async createModal(systems) {
- const { exportSystem, translationsSystem, appState } = await systems.request(
- 'exportSystem',
- 'translationsSystem',
- 'appState',
- );
-
- // await forTime(1000);
- return ;
- },
+ modules: [
+ makeModalModule({
+ async createModal(systems) {
+ const { exportSystem, translationsSystem, appState } = await systems.request(
+ 'exportSystem',
+ 'translationsSystem',
+ 'appState',
+ );
+
+ // await forTime(1000);
+ return ;
+ },
+ }),
+ {
+ async setup(systems) {
+ const { moduleInstaller } = await systems.request('moduleInstaller');
+
+ const frames = await exportSystem.getFrames();
+
+
+ ModuleInstallation.install()
+
+ console.log({ frames });
+
+ // TODO: !!! Show virtual frame whenprinting
+
+ return Registration.void();
+ },
+ },
+ ],
}),
);