def toggle_navbar_collapse(n_clicks: int, is_open: bool) -> bool:
    """Toogle navigation bar on mobile devices

    Arguments:
        n_clicks {int} -- number of clicks
        is_open {bool} -- is navigation bar open

    Returns:
        bool -- new state of navigation bar
    """
    if n_clicks:
        return not is_open
    return is_open