function mapStateToTitle()

in src/pages/github/github.tsx [142:153]


function mapStateToTitle(state: State<Context, Events>): string {
  if (state.matches('fetching')) {
    return 'Checking your token';
  }
  if (state.matches('success')) {
    return 'Setup complete';
  }
  if (state.matches('error')) {
    return 'Failure validating your token';
  }
  return 'Waiting for your token';
}