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

34 lines
1.4 KiB
TypeScript
Raw Normal View History

2026-07-29 08:29:29 +00:00
// Module ID: 5552
// Function ID: 5553
2026-07-20 16:05:17 +00:00
// Name: ActionSheetCloseButton
2026-07-29 08:29:29 +00:00
// Dependencies: [19, 21, 4717, 1236, 5175, 712, 2]
2026-07-20 16:05:17 +00:00
// Exports: ActionSheetCloseButton
2026-07-29 08:29:29 +00:00
// Module 5552 (ActionSheetCloseButton)
import "noop";
2026-07-23 10:11:24 +00:00
import { jsx } from "jsxProd";
const require = arg1;
2026-07-20 16:05:17 +00:00
let closure_4 = Object.freeze({ radius: 12 });
2026-07-23 10:11:24 +00:00
let closure_5 = Object.freeze({ top: 8, right: 8, bottom: 8, left: 8 });
const result = require("PressableBase").fileFinishedImporting("design/components/Sheet/native/ActionSheetCloseButton.native.tsx");
2026-07-20 16:05:17 +00:00
export const ActionSheetCloseButton = function ActionSheetCloseButton(arg0) {
let onPress;
let variant;
({ 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 = require(1236) /* getSystemLocale */.intl;
obj[1] = intl.string(require(1236) /* getSystemLocale */.t.cpT0Cq);
obj[2] = closure_5;
obj[3] = closure_4;
obj[4] = onPress;
2026-07-20 16:05:17 +00:00
if ("overlay" === variant) {
2026-07-29 08:29:29 +00:00
let ICON_STRONG = importDefault(712).colors.WHITE;
2026-07-20 16:05:17 +00:00
} else {
2026-07-29 08:29:29 +00:00
ICON_STRONG = importDefault(712).colors.ICON_STRONG;
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
obj[5] = jsx(require(5175) /* XSmallIcon */.XSmallIcon, { color: ICON_STRONG });
return jsx(require(4717) /* PressableBase */.PressableOpacity, { accessibilityRole: "button", accessibilityLabel: null, hitSlop: null, androidRippleConfig: null, onPress: null, children: null });
2026-07-20 16:05:17 +00:00
};