adds filter for socketCapacity reactions
@@ -118,3 +118,23 @@ export function generateGroupChatMembersLabel(groupChatConnections) {
return groupMembersLabel;
}
+
+/**
+ * Removes the socketEntry of a map if the socketCapacity is below 1 (used so that socketCapacity 1 sockets, are not displayed
+ * as tabs, and do not show up in the atom-content like the other sockets
+ * @param _
+ * @param socketType
+ * @returns {boolean}
+ */
+export const filterSingleConnectedSocketCapacityFilter = (_, socketType) =>
+ !vocab.socketCapacity[socketType] || vocab.socketCapacity[socketType] > 1;
+
+/**
+ * Removes the socketEntry of a map if the socketCapacity is not excatly 1 (used so that only socketCapacity 1 sockets, are displayed
+ * within the WonAtomContentGeneral component
+ * @param _
+ * @param socketType
+ * @returns {boolean}
+ */
+export const filterNonSingleConnectedSocketCapacityFilter = (_, socketType) =>
+ vocab.socketCapacity[socketType] === 1;
