// DSS Team Portal - Main Entry Point
import { initScene } from './scene.js';
import { actions } from './store.js';
import { initializeBridge, initializeTokenSynchronizer } from './bridge.js';

// Initialize the 3D Scene
initScene();

// Initialize the bridge to connect state to UI/3D
initializeBridge();

// Initialize the synchronizer to connect theme to 3D
initializeTokenSynchronizer();

// Add event listener for the toggle button
const toggleButton = document.getElementById('toggle-view-btn');
toggleButton.addEventListener('click', () => {
    actions.toggleViewState();
});

console.log("DSS Team Portal POC Initialized");
