feat: add back to lobby navigation on game pages

This commit is contained in:
Ryan Hamamura
2026-02-05 09:55:43 -10:00
parent 73128dc119
commit 0279615b36
2 changed files with 6 additions and 0 deletions

View File

@@ -25,6 +25,10 @@ type LobbyProps struct {
SpeedSelectClicks []h.H
}
func BackToLobby() h.H {
return h.A(h.Class("link text-sm opacity-70"), h.Href("/"), h.Text("← Back to Lobby"))
}
func LobbyView(p LobbyProps) h.H {
var authSection h.H
if p.IsLoggedIn {