import Signup from "./Signup/Signup";
import Success from "./Success/Success";
import AppError from "./Error/AppError";
import Login from "./Login/Login";
import UserPopupMenu from "./TopMenu/UserPopupMenu";
import LanguageSwitcher from "./TopMenu/LanguageSwitcher";
import ForgotPassword from "./ForgotPass/ForgotPassword";
import ResetPassword from "./ResetPass/ResetPassword";
import MyPlaylists from "./Playlists/MyPlaylists";
import GeneralInfo from "./Info/GeneralInfo";
import NewPlaylist from "./Playlists/NewPlaylist";
import FeError from "./Error/FeError";
import SelectBackground from "./Background/SelectBackground";
import Background from "./Background/Background";
import Settings from "./Settings/Settings";
import TimeDateUI from "./TimeUI/TimeDateUI";
import SleepMode from "./SleepMode/SleepMode";

const components = [Signup, Success, AppError, Login, UserPopupMenu, LanguageSwitcher,
    ForgotPassword, ResetPassword, MyPlaylists, GeneralInfo, NewPlaylist, FeError,
    SelectBackground, Background, Settings, TimeDateUI, SleepMode
];

class ComponentsInitializer {
    
    static init() {
        components.forEach(Class => {
            const instance = new Class();
            instance.init();
        });
    }
}
export default ComponentsInitializer;