def do_show_hide(n_clicks):
    """
    Shows/hides the sidebar on toggle click

    :param n_clicks: num clicks on toggle button
    :return: className of sidebar defining collapsed state
    """
    if n_clicks is None:
        return "sidebar"
    if n_clicks % 2:
        return "sidebar collapse"
    else:
        return "sidebar"