communication-react-19
Version:
React library for building modern communication user experiences utilizing Azure Communication Services (React 19 compatible fork)
21 lines • 965 B
JavaScript
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
import { MessageBar, MessageBarType, Stack } from '@fluentui/react';
import React from 'react';
/**
* @private
*/
export const AttachmentDownloadErrorBar = (props) => {
const { attachmentDownloadErrorMessage, onDismissDownloadErrorMessage } = props;
const messageBarIconProps = { iconName: 'ProtectedDocument' };
if (attachmentDownloadErrorMessage !== '') {
return (React.createElement(Stack, { horizontal: true, horizontalAlign: "space-between", verticalAlign: "center" },
React.createElement(MessageBar, { messageBarType: MessageBarType.warning, onDismiss: () => {
onDismissDownloadErrorMessage();
}, messageBarIconProps: messageBarIconProps }, attachmentDownloadErrorMessage)));
}
else {
return React.createElement(React.Fragment, null);
}
};
//# sourceMappingURL=AttachmentDownloadErrorBar.js.map