defmodule ToweropsWeb.HelpLive.Sidebar do
@moduledoc false
use ToweropsWeb, :html
attr :active_section, :string, required: true
def sidebar(assigns) do
~H"""
"""
end
defp sections do
[
{"about", "About Towerops"},
{"getting-started", "Getting Started"},
{"settings", "Organization Settings"},
{"sites", "Sites"},
{"cloud-pollers", "Cloud Pollers"},
{"agents", "Remote Pollers"},
{"integrations", "Integrations"},
{"graphs", "Graphs & Live Polling"},
{"insights", "Network Insights"},
{"network-map", "Network Map"},
{"api-tokens", "API Tokens"},
{"rest-api", "REST API"},
{"graphql-api", "GraphQL API"},
{"mikrotik", "MikroTik"}
]
end
defp active_class(key, key), do: "bg-blue-50 text-blue-700 dark:bg-blue-900/50 dark:text-blue-300"
defp active_class(_, _), do: "text-gray-700 hover:bg-gray-50 dark:text-gray-300 dark:hover:bg-gray-800"
end