4
4
/* @conditional -compile-remove(rtt) */
5
5
import React from 'react' ;
6
6
/* @conditional -compile-remove(rtt) */
7
- import { useLocale } from '../localization' ;
8
- /* @conditional -compile-remove(rtt) */
9
7
import { Notification } from './Notification' ;
10
8
/* @conditional -compile-remove(rtt) */
11
9
import { useTheme } from '@fluentui/react' ;
@@ -14,45 +12,44 @@ import { rttContainerStyles, rttIconStyles } from './styles/RTTDisclosureBanner.
14
12
15
13
/* @conditional -compile-remove(rtt) */
16
14
/**
17
- * @beta
15
+ * @private
18
16
* strings for rtt modal
19
17
*/
20
- export interface RTTDisclosureBannerStrings {
18
+ export interface _RTTDisclosureBannerStrings {
21
19
bannerTitle : string ;
22
20
bannerContent : string ;
23
21
bannerLinkLabel ?: string ;
24
22
}
25
23
26
24
/* @conditional -compile-remove(rtt) */
27
25
/**
28
- * @beta
26
+ * @private
29
27
* Props for RTT Banner
30
28
*/
31
- export interface RTTDisclosureBannerProps {
29
+ export interface _RTTDisclosureBannerProps {
32
30
/**
33
31
* Optional callback to supply users with further troubleshooting steps or more information for the Real Time Text feature.
34
32
*/
35
33
onClickLink ?: ( ) => void ;
36
34
/** RTT Banner strings */
37
- strings ?: RTTDisclosureBannerStrings ;
35
+ strings ?: _RTTDisclosureBannerStrings ;
38
36
}
39
37
40
38
/* @conditional -compile-remove(rtt) */
41
39
/**
42
- * @beta
40
+ * @private
43
41
* Banner to disclose that RTT is enabled for all participants for the entire duration of the meeting.
44
42
*/
45
- export const RTTDisclosureBanner = ( props : RTTDisclosureBannerProps ) : JSX . Element => {
46
- const localeStrings = useLocale ( ) . strings . rttDisclosureBanner ;
47
- const strings = { ...localeStrings , ...props . strings } ;
43
+ export const _RTTDisclosureBanner = ( props : _RTTDisclosureBannerProps ) : JSX . Element => {
44
+ const strings = props . strings ;
48
45
const theme = useTheme ( ) ;
49
46
50
47
return (
51
48
< Notification
52
49
notificationStrings = { {
53
- title : strings . bannerTitle ,
54
- message : strings . bannerContent ,
55
- linkLabel : strings . bannerLinkLabel
50
+ title : strings ? .bannerTitle ?? '' ,
51
+ message : strings ? .bannerContent ,
52
+ linkLabel : strings ? .bannerLinkLabel
56
53
} }
57
54
notificationIconProps = { {
58
55
iconName : 'RealTimeTextIcon' ,
0 commit comments