from __future__ import annotations
import typing
from typing import List

from BotFramework.View.BaseComponents.drawable import Drawable

if typing.TYPE_CHECKING:
    from BotFramework import Session, UI


class ViewContainer(Drawable):
    def __init__(self, session: Session, ui: UI):
        self.views: List[Drawable] = []
        self.session: Session = session
        self.ui = ui

    def draw(self):
        pass

    def remove(self):
        view_list = self.views[:]

        for view in view_list:
            view.remove()

        self.views = []
