UNPKG

communication-react-19

Version:

React library for building modern communication user experiences utilizing Azure Communication Services (React 19 compatible fork)

26 lines 927 B
// Copyright (c) Microsoft Corporation. // Licensed under the MIT License. /* @conditional-compile-remove(file-sharing-acs) */ import { useLocale } from '../../localization'; /** * Conditionally modify locale strings passed to the attachment card * @returns attachment card strings */ export const useLocaleAttachmentCardStringsTrampoline = () => { /* @conditional-compile-remove(file-sharing-acs) */ return useLocale().strings.sendBox; return { removeAttachment: '', uploadCompleted: '', uploading: '', uploadProgress: '', attachmentMoreMenu: '' }; }; /** * Identify if a participant state if part of the Calling states or Hold states. */ export const _isParticipantStateCallingOrHold = (participantState) => { return !!participantState && ['Idle', 'Connecting', 'EarlyMedia', 'Ringing', 'Hold'].includes(participantState); }; //# sourceMappingURL=common.js.map