@seamly/web-ui 21.0.3-beta.3 → 21.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -6483,21 +6483,24 @@ const useSeamlyOptions = () => {
6483
6483
  features
6484
6484
  } = options;
6485
6485
  const {
6486
- cobrowsing,
6486
+ extraMenuItem,
6487
6487
  sendTranscript
6488
6488
  } = features;
6489
6489
  const optionsObj = {
6490
- cobrowsing,
6490
+ extraMenuItem,
6491
6491
  sendTranscript
6492
6492
  };
6493
+ const menuTitle = option => {
6494
+ return option === 'extraMenuItem' ? 'Extra menu item' : t(`options.${option}.menuTitle`);
6495
+ };
6493
6496
  const menuOptions = Object.keys(optionsObj).filter(key => {
6494
6497
  return optionsObj[key];
6495
6498
  }).map(option => ({
6496
6499
  name: option,
6497
- title: t(`options.${option}.menuTitle`),
6500
+ title: menuTitle(option),
6498
6501
  available: optionsObj[option].enabled
6499
6502
  }));
6500
- const allowOptionSelection = cobrowsing || sendTranscript;
6503
+ const allowOptionSelection = extraMenuItem || sendTranscript;
6501
6504
  const dispatch = useDispatch_useDispatch();
6502
6505
  const {
6503
6506
  get,