UNPKG

@sendbird/uikit-utils

Version:

A collection of utility functions and constants for building chat UI components with Sendbird UIKit.

9 lines 383 B
export const getOpenChannelTitle = (channel, DEFAULT_CHANNEL_NAME = 'Open Channel') => { const trimmedChannelName = channel.name.trim(); if (trimmedChannelName === '') return DEFAULT_CHANNEL_NAME; return trimmedChannelName; }; export const getOpenChannelParticipants = channel => { return `${channel.participantCount} participants`; }; //# sourceMappingURL=openChannel.js.map