Files
discord-decomp/modules/icymi/native/ICYMIFeedbackSheet.tsx
T
2026-11-01 12:12:55 +02:00

36 lines
1.3 KiB
TypeScript

// Metro module 15345 (f15346).
import FeedbackActionSheet from "../../feedback/native/FeedbackActionSheet";
import { intl, t } from "../../../intl/index.native";
import { ICYMIAnalytics } from "../ICYMIAnalytics";
import ICYMIActionCreators from "../ICYMIActionCreators";
export default function ICYMIFeedbackSheet() {
return <FeedbackActionSheet headerLabel={intl.string(t["ppfH9+"])} showHeaderCloseButton hideDontShowAgainCheckbox ratingsBodyLabel={intl.string(t["ePk/Cf"])} reasonsHeaderLabel={intl.string(t.sBOuOf)} reasons={[{
label: intl.string(t.F6TmZA),
value: "irrelevant_content"
}, {
label: intl.string(t.voWAzi),
value: "not_enough_content"
}, {
label: intl.string(t.Ay8iwx),
value: "too_much_content"
}, {
label: intl.string(t["Yu+52W"]),
value: "laggy"
}, {
label: "Other",
value: "other"
}]} otherKey="other" trackOpen={ICYMIAnalytics.trackFeedFeedbackPromptViewed} feedbackReasons={["other"]} trackReport={(a0) => {
ICYMIActionCreators.giveFeedback();
const reason_descriptions = a0.reason != null ? [a0.reason.value] : void 0;
let rating = a0.rating;
if (rating == null) {
rating = void 0;
}
ICYMIAnalytics.trackFeedFeedbackSubmitted({
reason_descriptions,
rating,
user_feedback: a0.feedback
});
}} />;
};