-- DreamStack When/Else Demo

let loggedIn = false
let count = 0

view main = column [
  text "🔀 When/Else Demo" { variant: "title" }
  button "Toggle Login" { click: loggedIn = !loggedIn }

  when loggedIn ->
    text "Welcome back! ✅"
  else ->
    text "Please log in 🔒"

  text "Count: {count}"
  button "+1" { click: count += 1 }
]
