decord/source/design/components/Sheet/native/ActionSheetCloseButton.native.tsx
2026-08-25 06:04:03 +00:00

36 lines
1.5 KiB
TypeScript

// Module ID: 5871
// Function ID: 5872
// Name: ActionSheetCloseButton
// Dependencies: [19, 21, 4949, 1236, 5432, 712, 2]
// Exports: ActionSheetCloseButton
// Module 5871 (ActionSheetCloseButton)
import noopAll from "noop" /* 19 */;
import ThemesDefault from "Themes" /* 712 */;
import getSystemLocale from "getSystemLocale" /* 1236 */;
import PressableBase from "PressableBase" /* 4949 */;
import XSmallIcon from "XSmallIcon" /* 5432 */;
import { jsx } from "jsxProd" /* 21 */;
require = arg1;
noopAll;
let closure_4 = Object.freeze({ radius: 12 });
let closure_5 = Object.freeze({ top: 8, right: 8, bottom: 8, left: 8 });
const result = require("set").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 = getSystemLocale.intl;
obj[1] = intl.string(getSystemLocale.t.cpT0Cq);
obj[2] = closure_5;
obj[3] = closure_4;
obj[4] = onPress;
if ("overlay" === variant) {
let ICON_STRONG = ThemesDefault.colors.WHITE;
} else {
ICON_STRONG = ThemesDefault.colors.ICON_STRONG;
}
obj[5] = jsx(XSmallIcon.XSmallIcon, { color: ICON_STRONG });
return jsx(PressableBase.PressableOpacity, { accessibilityRole: "button", accessibilityLabel: null, hitSlop: null, androidRippleConfig: null, onPress: null, children: null });
};