message: fix: introduce callback to properly handle available content types
diff: import * as React from 'react';
  import { useMemo } from 'react';
  +
  +import { EditorPermissions } from '../../common/useEditorPermissions';
  import {
  Action,
  ActionLabels,
  @@ -9,9 +11,8 @@ import {
  Asset,
  NavigatorSlideInfo,
  } from '../../types';
  -import { LinkActions, LinkActionsProps } from './LinkActions';
  import { createEntity, selectMultipleEntities, selectSingleEntity } from './helpers';
  -import { EditorPermissions } from '../../common/useEditorPermissions';
  +import { LinkActions, LinkActionsProps } from './LinkActions';
  type LinkEntityActionsProps = {
  entityType: ContentEntityType;
  @@ -90,8 +91,8 @@ export function useLinkActionsProps(props: LinkEntityActionsProps): LinkActionsP
  [sdk, entityType, onCreated]
  );
  - // Wrapping these two with useCallback caused a bug [ZEND-2154] where CTs were not propagated to the UI at all
  - const onLinkExisting = async (index?: number) => {
  + const onLinkExisting = React.useCallback(
  + async (index?: number) => {
  const entity = await selectSingleEntity({
  sdk,
  entityType,
  @@ -102,9 +103,13 @@ export function useLinkActionsProps(props: LinkEntityActionsProps): LinkActionsP
  }
  onLinkedExisting([entity], index);
  - };
  + },
  + // eslint-disable-next-line react-hooks/exhaustive-deps -- TODO: Evaluate the dependencies
  + [sdk, entityType, onLinkedExisting]
  + );
  - const onLinkSeveralExisting = async (index?: number) => {
  + const onLinkSeveralExisting = React.useCallback(
  + async (index?: number) => {
  const entities = await selectMultipleEntities({
  sdk,
  entityType,
  @@ -115,7 +120,10 @@ export function useLinkActionsProps(props: LinkEntityActionsProps): LinkActionsP
  return;
  }
  onLinkedExisting(entities, index);
  - };
  + },
  + // eslint-disable-next-line react-hooks/exhaustive-deps -- TODO: Evaluate the dependencies
  + [sdk, entityType, onLinkedExisting]
  + );
  // FIXME: The memoization might rerun every time due to the always changing callback identities above
  return useMemo(
  