Files
discord-decomp/sources/modules/icymi/native/ReplyRow.tsx
T
2026-07-27 16:20:00 +03:00

84 lines
5.1 KiB
TypeScript

/* Metro module 14872; source: modules/icymi/native/ReplyRow.tsx; dependencies: [31, 27, 33, 14815, 697, 5278, 4573, 7950, 2] */
function _fun112519(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#112519, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15069:6, offset: 0x023cee9e, size: 202 bytes, params: 8, frame: 18
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
importAll(31) /* metro dependency 31 */;
const env0_3 = (require(27) /* metro dependency 27 */).View;
const value = require(33) /* metro dependency 33 */;
const env0_4 = value.jsx;
const env0_5 = value.jsxs;
const env0_6 = (require(14815) /* metro dependency 14815: createICYMIStyles */).createICYMIStyles(_fun112520);
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/icymi/native/ReplyRow.tsx');
exports.ContentInventoryReplyRow = ContentInventoryReplyRow;
}
function _fun112520(a0) { // fn#112520, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15069:175, offset: 0x023cef68, size: 515 bytes, params: 2, frame: 17
const object2 = {};
const BORDER_SUBTLE = (importDefault(697) /* metro dependency 697: native */).colors.BORDER_SUBTLE;
object2.separator = {height: 1, backgroundColor: BORDER_SUBTLE, marginBottom: a0.margin, width: '100%'};
const object4 = {'flex': 1, 'alignItems': 'center', 'justifyContent': 'center', 'flexDirection': 'row'};
object4.marginHorizontal = a0.margin;
object4.marginBottom = a0.margin;
let PX_12 = (importDefault(697) /* metro dependency 697: native */).space.PX_12;
object4.gap = PX_12;
object2.container = object4;
let PX_40 = (importDefault(697) /* metro dependency 697: native */).space.PX_40;
object2.buttonContainer = {'flexGrow': 1, 'flexBasis': 0, height: PX_40};
const object6 = {'flexDirection': 'row', 'alignItems': 'center', 'justifyContent': 'space-between'};
PX_12 = (importDefault(697) /* metro dependency 697: native */).space.PX_12;
object6.gap = PX_12;
PX_40 = (importDefault(697) /* metro dependency 697: native */).space.PX_40;
object6.height = PX_40;
object2.feedbackContainer = object6;
object2.icon = {'width': 20, 'height': 20};
const BUTTON_OUTLINE_PRIMARY_TEXT = (importDefault(697) /* metro dependency 697: native */).colors.BUTTON_OUTLINE_PRIMARY_TEXT;
object2.feedbackButtonIcon = {tintColor: BUTTON_OUTLINE_PRIMARY_TEXT};
const object8 = {flex: 1};
object8.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.round;
object2.input = object8;
const REDESIGN_CHAT_INPUT_BACKGROUND = (importDefault(697) /* metro dependency 697: native */).colors.REDESIGN_CHAT_INPUT_BACKGROUND;
object2.contentInventoryPressable = {'borderRadius': 20, 'width': '100%', 'minHeight': 40, 'backgroundColor': null,
'justifyContent': 'center', backgroundColor: REDESIGN_CHAT_INPUT_BACKGROUND};
const object10 = {'marginLeft': null, 'marginRight': 10, 'paddingVertical': null, 'flexDirection': 'row',
'alignItems': 'center'};
object10.marginLeft = a0.margin;
const PX_8 = (importDefault(697) /* metro dependency 697: native */).space.PX_8;
object10.paddingVertical = PX_8;
const PX_4 = (importDefault(697) /* metro dependency 697: native */).space.PX_4;
object10.gap = PX_4;
object2.contentInventoryContainer = object10;
object2.contentInventoryText = {flexShrink: 1};
object2.replyContainer = {'flexDirection': 'row', 'alignItems': 'center', marginLeft: a0.inset,
marginTop: a0.margin};
return object2;
}
function ContentInventoryReplyRow({reactText, onReply}) { // fn#112521, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15069:1340, offset: 0x023cf16b, size: 267 bytes, params: 2, frame: 24
const value2 = env0_6();
const replyContainer = value2.replyContainer;
const PressableOpacity = (require(5278) /* metro dependency 5278: Pressables */).PressableOpacity;
const contentInventoryPressable = value2.contentInventoryPressable;
const contentInventoryContainer = value2.contentInventoryContainer;
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
const text = <Text variant="text-md/medium" color="input-placeholder-text-default" lineClamp={1} style={value2.contentInventoryText}>{reactText}</Text>;
const ReactionIcon = (require(7950) /* metro dependency 7950: ReactionIcon */).ReactionIcon;
return (
<View style={replyContainer}>
<PressableOpacity
accessibilityRole="button"
onPress={onReply}
style={contentInventoryPressable}
accessibilityLabel={reactText}
pointerEvents="box-only"
>
<View style={contentInventoryContainer}>
{text}
<ReactionIcon style={value2.icon} size="custom" />
</View>
</PressableOpacity>
</View>
);
}