vd-plugins/nexxstuff/lib/ui.ts
kmmiio99o b98ce51645
feat: add nexx lib and better Header text
nexx shouldn't be mad, right?
2026-01-25 17:09:24 +01:00

17 lines
374 B
TypeScript

import { NavigationNative, React } from "@vendetta/metro/common";
export function managePage(
options: {
title?: string;
headerLeft?: React.FC;
headerRight?: React.FC;
},
navigation?: any,
...deps: any[]
) {
if (!navigation) navigation = NavigationNative.useNavigation();
React.useEffect(() => {
navigation.setOptions(options);
}, [navigation, ...deps]);
}