code: func New(entryText, dialog, class string,
  	config map[string]string) react.Element {
  	if config == nil {
  		fmt.Println("Nil config for DownloadItemsBtn")
  		return nil
  	}
  	authToken, ok := config["authToken"]
  	if !ok {
  		fmt.Println("No authToken in config for AboutMenuItem")
  		return nil
  	}
  	statusRoot, ok := config["statusRoot"]
  	if !ok {
  		fmt.Println("No statusRoot in config for AboutMenuItem")
  		return nil
  	}
  	props := AboutMenuItemProps{
  		class:      class,
  		menuEntry:  entryText,
  		dialog:     dialog,
  		authToken:  authToken,
  		statusRoot: statusRoot,
  	}
  	return buildAboutMenuItemElem(props)
  }
docs: //go:generate reactGen
  // New returns the menu item element. It should be used as the entry point, to
  // create the needed react element.
  //
  // config is the web UI config that was fetched from the server.
  //
  // entryText is the text for this menu item, displayed in the menu.
  //
  // dialog is the text that appears in the dialog that is created when this menu
  // item is clicked on.
  //
  // class is the CSS class for this item.