decord/beta/source/modules/rtc/native/SecureFramesStreamVerificationBottomSheet.tsx
2026-10-01 14:13:23 +00:00

52 lines
2.2 KiB
TypeScript

// Module ID: 9179
// Function ID: 9180
// Name: SecureFramesStreamVerificationBottomSheet
// Dependencies: [19, 4875, 1074, 21, 504, 9174, 7809, 9180, 1115, 9163, 2]
// Exports: default
// Module 9179 (SecureFramesStreamVerificationBottomSheet)
import Fragment from "Fragment" /* 21 */;
import Constants from "Constants" /* 1074 */;
import showShareActionSheet from "showShareActionSheet" /* 7809 */;
import SecureFramesTracking from "SecureFramesTracking" /* 9174 */;
import react from "react" /* 19 */;
import StreamRTCConnectionStore from "StreamRTCConnectionStore" /* 4875 */;
import size from "module_2" /* 2 */;
const AnalyticsSections = Constants.AnalyticsSections;
const jsx = Fragment.jsx;
let result = size.fileFinishedImporting("modules/rtc/native/SecureFramesStreamVerificationBottomSheet.tsx");
export default function SecureFramesStreamVerificationBottomSheet(channelId) {
let obj4;
channelId = channelId.channelId;
const streamKey = channelId.streamKey;
let obj = channelId(504);
const items = [StreamRTCConnectionStore];
const items1 = [channelId];
const stateFromStores = obj.useStateFromStores(items, () => {
const secureFramesState = StreamRTCConnectionStore.getSecureFramesState(streamKey);
let epochAuthenticator;
if (secureFramesState != null) {
epochAuthenticator = secureFramesState.epochAuthenticator;
}
return epochAuthenticator;
});
const callback = react.useCallback((message) => {
const obj = SecureFramesTracking;
const obj2 = { channelId };
const result = obj.trackE2EEStreamVerificationShareClicked(obj2);
const obj3 = showShareActionSheet;
const obj4 = { message };
obj3.showShareActionSheet(obj4, AnalyticsSections.SECURE_FRAMES_STREAM_BOTTOM_SHEET);
}, items1);
streamKey(9180);
const intl = channelId(1115).intl;
const intl2 = channelId(1115).intl;
const intl3 = channelId(1115).intl;
const format = intl3.format;
let obj3 = { helpArticle: obj4.getSecureFramesHelpdeskArticle() };
const prop = channelId(1115).t["H3+ktv"];
obj4 = channelId(9163);
return <tmp3 title={intl.string(channelId(1115).t.QogHld)} subtitle={intl2.string(channelId(1115).t.qODBkW)} footer={format(prop, obj3)} epochAuthenticator={stateFromStores} onShareClick={callback} />;
};