//
//  AboutUsCoordinator.swift
//  MacroCosm
//
//  Created by Ольга Кадочникова on 30.03.2021.
//

import UIKit

final class AboutUsCoordinator: DefaultCoordinator {
    
    static func createModule(_ configuration: ((CustomizableAboutUsViewModel) -> Void)? = nil) -> UIViewController {
        let view = AboutUsViewController()
        let viewModel = AboutUsViewModel()
        let coordinator = AboutUsCoordinator()

        view.viewModel = viewModel
        view.coordinator = coordinator

        coordinator.transition = view

        if let configuration = configuration {
            configuration(viewModel)
        }

        return view
    }
}

// MARK: - Interface for view
extension AboutUsCoordinator: AboutUsCoordinatorProtocol {

}
