decord/source/design/components/Sheet/native/ActionSheetCloseButton.native.tsx

37 lines
1.5 KiB
TypeScript
Raw Normal View History

// Module ID: 7301
// Function ID: 7302
2026-07-20 16:05:17 +00:00
// Name: ActionSheetCloseButton
// Dependencies: [19, 21, 5204, 1114, 5761, 576, 2]
2026-07-20 16:05:17 +00:00
// Exports: ActionSheetCloseButton
// Module 7301 (ActionSheetCloseButton)
import nativeDefault from "native" /* 576 */;
import util from "util" /* 1114 */;
import Pressables from "Pressables" /* 5204 */;
import XSmallIcon from "XSmallIcon" /* 5761 */;
import noop from "module_19" /* 19 */;
2026-07-23 10:11:24 +00:00
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");
2026-07-20 16:05:17 +00:00
export const ActionSheetCloseButton = function ActionSheetCloseButton(arg0) {
({ onPress, variant } = arg0);
2026-07-29 08:29:29 +00:00
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;
2026-07-20 16:05:17 +00:00
if ("overlay" === variant) {
let ICON_STRONG = nativeDefault.colors.WHITE;
2026-07-20 16:05:17 +00:00
} else {
ICON_STRONG = nativeDefault.colors.ICON_STRONG;
2026-07-20 16:05:17 +00:00
}
obj.children = jsx(XSmallIcon.XSmallIcon, { color: ICON_STRONG });
return jsx(Pressables.PressableOpacity, { accessibilityRole: "button", accessibilityLabel: null, hitSlop: null, androidRippleConfig: null, onPress: null, children: null });
2026-07-20 16:05:17 +00:00
};