decord/source/design/components/Sheet/native/ActionSheetCloseButton.native.tsx
github-actions e510164e6b chore: update source for alpha 346.2
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4759.js (118.4 MB)
2026-09-10 05:38:07 +00:00

36 lines
1.5 KiB
TypeScript

// Module ID: 7212
// Function ID: 7213
// Name: ActionSheetCloseButton
// Dependencies: [19, 21, 5137, 1114, 5694, 576, 2]
// Exports: ActionSheetCloseButton
// Module 7212 (ActionSheetCloseButton)
import nativeDefault from "native" /* 576 */;
import util from "util" /* 1114 */;
import Pressables from "Pressables" /* 5137 */;
import XSmallIcon from "XSmallIcon" /* 5694 */;
import noop from "module_19" /* 19 */;
require = fn;
const jsx = fn(21).jsx;
const androidRippleConfig = Object.freeze({ radius: 12 });
const hitSlop = Object.freeze({ top: 8, right: 8, bottom: 8, left: 8 });
const size = fn(2);
const result = size.fileFinishedImporting("design/components/Sheet/native/ActionSheetCloseButton.native.tsx");
export const ActionSheetCloseButton = function ActionSheetCloseButton(arg0) {
({ onPress, variant } = arg0);
const obj = { accessibilityRole: "button", accessibilityLabel: null, hitSlop: null, androidRippleConfig: null, onPress: null, children: null };
const intl = util.intl;
obj.accessibilityLabel = intl.string(util.t.cpT0Cq);
obj.hitSlop = hitSlop;
obj.androidRippleConfig = androidRippleConfig;
obj.onPress = onPress;
if ("overlay" === variant) {
let ICON_STRONG = nativeDefault.colors.WHITE;
} else {
ICON_STRONG = nativeDefault.colors.ICON_STRONG;
}
obj.children = jsx(XSmallIcon.XSmallIcon, { color: ICON_STRONG });
return jsx(Pressables.PressableOpacity, { accessibilityRole: "button", accessibilityLabel: null, hitSlop: null, androidRippleConfig: null, onPress: null, children: null });
};