import { DeckStateManager } from '../modules/DeckStateManager.js';
import { GameCreationStepManager } from '../modules/GameCreationStepManager.js';
import { injectNavbar } from '../modules/Navbar.js';
import createTemplate from '../view_templates/CreateTemplate.js';

const create = () => {
    injectNavbar();
    document.getElementById('game-creation-container').innerHTML = createTemplate;
    const deckManager = new DeckStateManager();
    const gameCreationStepManager = new GameCreationStepManager(deckManager);
    gameCreationStepManager.renderStep('creation-step-container', 1);
};

if (typeof module !== 'undefined' && typeof module.exports !== 'undefined') {
    module.exports = create;
} else {
    create();
}
