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

37 lines
1.5 KiB
TypeScript
Raw Normal View History

2026-08-24 06:08:38 +00:00
// Module ID: 7214
// Function ID: 7215
2026-07-20 16:05:17 +00:00
// Name: ActionSheetCloseButton
2026-08-24 06:08:38 +00:00
// Dependencies: [19, 21, 5438, 1236, 6399, 712, 2]
2026-07-20 16:05:17 +00:00
// Exports: ActionSheetCloseButton
2026-08-24 06:08:38 +00:00
// Module 7214 (ActionSheetCloseButton)
import noopAll from "noop" /* 19 */;
import ThemesDefault from "Themes" /* 712 */;
import getSystemLocale from "getSystemLocale" /* 1236 */;
import PressableBase from "PressableBase" /* 5438 */;
import XSmallIcon from "XSmallIcon" /* 6399 */;
import { jsx } from "jsxProd" /* 21 */;
2026-07-23 10:11:24 +00:00
2026-08-24 06:08:38 +00:00
require = arg1;
noopAll;
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 });
2026-08-24 06:08:38 +00:00
const result = require("set").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 };
2026-08-24 06:08:38 +00:00
const intl = getSystemLocale.intl;
obj[1] = intl.string(getSystemLocale.t.cpT0Cq);
2026-07-29 08:29:29 +00:00
obj[2] = closure_5;
obj[3] = closure_4;
obj[4] = onPress;
2026-07-20 16:05:17 +00:00
if ("overlay" === variant) {
2026-08-24 06:08:38 +00:00
let ICON_STRONG = ThemesDefault.colors.WHITE;
2026-07-20 16:05:17 +00:00
} else {
2026-08-24 06:08:38 +00:00
ICON_STRONG = ThemesDefault.colors.ICON_STRONG;
2026-07-20 16:05:17 +00:00
}
2026-08-24 06:08:38 +00:00
obj[5] = jsx(XSmallIcon.XSmallIcon, { color: ICON_STRONG });
return jsx(PressableBase.PressableOpacity, { accessibilityRole: "button", accessibilityLabel: null, hitSlop: null, androidRippleConfig: null, onPress: null, children: null });
2026-07-20 16:05:17 +00:00
};