Skip to content

Instantly share code, notes, and snippets.

@robertpenner
Last active August 12, 2021 22:10
Show Gist options
  • Save robertpenner/881d432295b43f238d74b79dd4e90fc7 to your computer and use it in GitHub Desktop.
Save robertpenner/881d432295b43f238d74b79dd4e90fc7 to your computer and use it in GitHub Desktop.
Generated by XState Viz: https://xstate.js.org/viz
const machine = Machine({
id: "Leaderboard Navigation - Top 2 Levels",
initial: "Leaderboard",
states: {
Leaderboard: {
type: "parallel",
states: {
"[A Pro Tournament]": {},
"[A Pro-Am Tournament]": {
initial: "Pro",
states: {
Pro: {},
"[Amateur Categories]": {},
},
},
},
},
"Tee Times": {
type: "parallel",
states: {
"[A Tournament]": {
initial: "Round 1",
states: {
"Round 1": {},
"Round 2": {},
"Round 3": {},
"Round 4": {},
},
},
},
},
FedExCup: {},
Odds: {
initial: "Unavailable",
states: {
Unavailable: {},
"To Win": {},
Matchups: {
// initial: "3 Ball – DHR – R1",
// states: {
// "3 Ball – DHR – R1": {},
// "2 Ball – DHR – R1": {},
// "H2H – DHR – F": {},
// },
},
Finishes: {
// initial: "Top 5",
// states: {
// "Top 5": {},
// "Top 10": {},
// "Top 20": {},
// },
},
Groups: {},
Players: {
// initial: "Make the Cut",
// states: {
// "Make the Cut": {},
// "Leader After R1": {},
// },
},
Nationality: {
// initial: "USA",
// states: {
// USA: {},
// Asian: {},
// Australian: {},
// British: {},
// Canadian: {},
// },
},
Compare: {
// initial: "FanDuel",
// states: {
// FanDuel: {},
// BetMGM: {},
// DraftKings: {},
// SportsBet: {},
// History: {},
// },
},
},
},
},
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment