decord/source/modules/guilds_bar/native/GuildsBarFooterWrapper.tsx
github-actions 03cf168fbc chore: update source for alpha 347.3
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4825.js (118.4 MB)
2026-09-17 08:17:09 +00:00

36 lines
1.5 KiB
TypeScript

// Module ID: 16509
// Function ID: 16510
// Name: GuildsBarFooterWrapper
// Dependencies: [16442, 21, 4640, 576, 4341, 16182, 5677, 2]
// Exports: default
// Module 16509 (GuildsBarFooterWrapper)
import jsxProd from "jsxProd" /* 21 */;
import nativeDefault from "native" /* 576 */;
import useToken from "useToken" /* 4341 */;
import NativeViewDefault from "NativeView" /* 5677 */;
import useHomeDrawerGesture from "useHomeDrawerGesture" /* 16182 */;
import GuildsBarConstants from "GuildsBarConstants" /* 16442 */;
import createStyles from "createStyles" /* 4640 */;
import size from "module_2" /* 2 */;
const GUILD_ITEM_HIT_SLOP = GuildsBarConstants.GUILD_ITEM_HIT_SLOP;
const jsx = jsxProd.jsx;
let obj = { footerWrapper: { display: "flex", alignSelf: "stretch", alignItems: "center", gap: nativeDefault.modules.mobile.GUILD_BAR_ITEM_PADDING } };
let closure_5 = createStyles.createStyles(obj);
const result = size.fileFinishedImporting("modules/guilds_bar/native/GuildsBarFooterWrapper.tsx");
export default function GuildsBarFooterWrapper(children) {
const token = useToken.useToken(nativeDefault.modules.mobile.GUILD_BAR_ITEM_SIZE);
const tmp2 = closure_5();
const isHomeDrawerEnabled = useHomeDrawerGesture.useIsHomeDrawerEnabled();
const style = [tmp2.footerWrapper, ];
let tmp6 = null;
const tmp4 = jsx;
if (!isHomeDrawerEnabled) {
const obj3 = { width: token + GUILD_ITEM_HIT_SLOP.left + GUILD_ITEM_HIT_SLOP.right };
tmp6 = obj3;
}
style[1] = tmp6;
return tmp4(NativeViewDefault, { style, children: children.children });
};