// Metro module 16171 (f16172). import AuthenticationStore from "../../../stores/AuthenticationStore"; import { AnalyticEvents } from "../../../Constants"; import { FeedbackCategory, FeedbackType, StreamFeedbackOption } from "../../../modules/feedback/Constants"; import { useGetStreamApplication } from "../../../modules/go_live/utils/StreamerApplicationSelectors"; import { useStateFromStores } from "../../../_bundle/Module589"; import { intl, t } from "../../../intl/index.native"; import Feedback_messages from "../../../modules/feedback/intl/Feedback.messages"; import { getStreamFeedbackOptions, processOptOut } from "../../../modules/feedback/FeedbackUtils"; import FeedbackActionSheetV2 from "../../../modules/feedback/native/FeedbackActionSheetV2"; import AnalyticsUtils from "../../../utils/AnalyticsUtils"; import trackStreamProblem from "../../../modules/go_live/utils/trackStreamProblem"; import { shouldShowLogUploadForCategory } from "../../../modules/feedback/shouldShowLogUploadForCategory"; import ActionSheetActionCreators from "../../../modules/action_sheet/native/ActionSheetActionCreators"; import { presentFeedbackSent } from "../../../modules/toast/native/ToastUtils"; export default function StreamFeedbackActionSheet(props) { const { stream, analyticsData } = props; const getStreamApplication = useGetStreamApplication(stream); const stateFromStores = useStateFromStores([AuthenticationStore], () => AuthenticationStore.getId() === stream.ownerId); const headerLabel = intl.string(t["5smP3R"]); const r10 = intl.string(t["0uxA2V"]); let ratingBody = intl.string(t.CqjnLN); const r52 = { value: stateFromStores ? FeedbackCategory.STREAMING : FeedbackCategory.STREAM_WATCHING, label: intl.string(stateFromStores ? Feedback_messages["0ZBLiZ"] : Feedback_messages.TVTIT1), problemsHeader: intl.string(t["6Y1t5P"]), problemOptions: getStreamFeedbackOptions({ isStreamer: stateFromStores }), freeformConfig: { value: StreamFeedbackOption.FREEFORM, label: intl.string(t.emlT91) } }; if (stateFromStores) { ratingBody = r10; } return ; };