package tui import ( "proxyctl/internal/app" "proxyctl/internal/profile" ) func profileAt(snapshot app.Snapshot, index int) (profile.Profile, bool) { if index < 0 || index >= len(snapshot.Profiles) { return profile.Profile{}, false } return snapshot.Profiles[index], true }