decord/source/modules/polls/native/PollCreationInputError.tsx

45 lines
1.8 KiB
TypeScript
Raw Normal View History

2026-07-24 07:16:23 +00:00
// Module ID: 11365
// Function ID: 88415
2026-07-20 16:05:17 +00:00
// Name: PollCreationInputError
2026-07-23 10:11:24 +00:00
// Dependencies: [31, 27, 33, 4130, 689, 3843, 1273, 4126, 2]
2026-07-20 16:05:17 +00:00
// Exports: default
2026-07-24 07:16:23 +00:00
// Module 11365 (PollCreationInputError)
2026-07-23 10:11:24 +00:00
import result from "result";
import { View } from "get ActivityIndicator";
import jsxProd from "jsxProd";
import _createForOfIteratorHelperLoose from "_createForOfIteratorHelperLoose";
let closure_4;
let closure_5;
const require = arg1;
({ jsx: closure_4, jsxs: closure_5 } = jsxProd);
_createForOfIteratorHelperLoose = { container: { flexDirection: "row", alignItems: "center", marginTop: -10 } };
_createForOfIteratorHelperLoose = { alignSelf: "center", marginRight: 5, color: require("_createForOfIteratorHelperLoose").colors.TEXT_FEEDBACK_CRITICAL };
_createForOfIteratorHelperLoose.icon = _createForOfIteratorHelperLoose;
_createForOfIteratorHelperLoose = _createForOfIteratorHelperLoose.createStyles(_createForOfIteratorHelperLoose);
const result = require("jsxProd").fileFinishedImporting("modules/polls/native/PollCreationInputError.tsx");
2026-07-20 16:05:17 +00:00
export default function PollCreationInputError(message) {
message = message.message;
2026-07-23 10:11:24 +00:00
let tmp = _createForOfIteratorHelperLoose();
2026-07-20 16:05:17 +00:00
const items = [message];
const effect = React.useEffect(() => {
let tmp = null != message;
if (tmp) {
tmp = "" !== message;
}
if (tmp) {
2026-07-23 10:11:24 +00:00
const AccessibilityAnnouncer = message(outer1_1[5]).AccessibilityAnnouncer;
2026-07-20 16:05:17 +00:00
AccessibilityAnnouncer.announce(message);
}
}, items);
let obj = { style: tmp.container };
2026-07-23 10:11:24 +00:00
obj = { width: 16, height: 16, style: tmp.icon };
const items1 = [callback(message(1273).WarningCircle, obj), ];
obj = { variant: "text-xs/medium", color: "text-feedback-critical", children: message };
items1[1] = callback(message(4126).Text, obj);
2026-07-20 16:05:17 +00:00
obj.children = items1;
return callback2(View, obj);
};