Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4823.js (118.4 MB)
53 lines
1.6 KiB
TypeScript
53 lines
1.6 KiB
TypeScript
// Module ID: 16426
|
|
// Function ID: 16427
|
|
// Name: useHomeDrawerToggleAccessibilityAction
|
|
// Dependencies: [19, 1115, 4495, 4349, 2]
|
|
// Exports: default
|
|
|
|
// Module 16426 (useHomeDrawerToggleAccessibilityAction)
|
|
import util from "util" /* 1115 */;
|
|
import noop from "module_19" /* 19 */;
|
|
|
|
require = fn;
|
|
let c3 = "toggle-home-drawer";
|
|
const size = fn(2);
|
|
const result = size.fileFinishedImporting("modules/home_drawer/native/useHomeDrawerToggleAccessibilityAction.tsx");
|
|
|
|
export default function useHomeDrawerToggleAccessibilityAction(arg0, arg1) {
|
|
closure_0 = arg0;
|
|
closure_1 = arg1;
|
|
const items = [arg0, arg1];
|
|
return noop.useMemo(() => {
|
|
if (closure_0) {
|
|
let intl = util.intl;
|
|
let string = intl.string;
|
|
let t = util.t;
|
|
if (dependencyMap) {
|
|
let stringResult = string(t.h8xFEv);
|
|
} else {
|
|
stringResult = string(t["Rgk/2h"]);
|
|
}
|
|
const obj = {
|
|
name,
|
|
label: stringResult,
|
|
action() {
|
|
closure_0(4495).setHomeDrawerState(!dependencyMap);
|
|
const intl = closure_0(1115).intl;
|
|
const string = intl.string;
|
|
const t = closure_0(1115).t;
|
|
if (dependencyMap) {
|
|
let stringResult = string(t["0s/g+O"]);
|
|
} else {
|
|
stringResult = string(t.hfxfVb);
|
|
}
|
|
const AccessibilityAnnouncer = closure_0(4349).AccessibilityAnnouncer;
|
|
AccessibilityAnnouncer.announce(stringResult);
|
|
}
|
|
};
|
|
return obj;
|
|
} else {
|
|
return null;
|
|
}
|
|
}, items);
|
|
};
|
|
export const TOGGLE_HOME_DRAWER_A11Y_ACTION = "toggle-home-drawer";
|