decord/source/modules/guilds_bar/native/GuildsBarFooterWrapper.tsx
github-actions f0f877e8ce chore: update source for alpha 347.1
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4824.js (118.4 MB)
2026-09-15 14:23:42 +00:00

36 lines
1.5 KiB
TypeScript

// Module ID: 16459
// Function ID: 16460
// Name: GuildsBarFooterWrapper
// Dependencies: [16392, 21, 4639, 576, 4341, 16130, 5674, 2]
// Exports: default
// Module 16459 (GuildsBarFooterWrapper)
import jsxProd from "jsxProd" /* 21 */;
import nativeDefault from "native" /* 576 */;
import useToken from "useToken" /* 4341 */;
import NativeViewDefault from "NativeView" /* 5674 */;
import useHomeDrawerGesture from "useHomeDrawerGesture" /* 16130 */;
import GuildsBarConstants from "GuildsBarConstants" /* 16392 */;
import createStyles from "createStyles" /* 4639 */;
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 });
};