Files
mini-programs/src/components/CustomNavbar/index.tsx
juguohong 4e68db2476 列表
2025-08-31 20:24:42 +08:00

24 lines
530 B
TypeScript

import { View } from "@tarojs/components";
import styles from "./index.module.scss";
import { useGlobalState } from "@/store/global";
interface IProps {
children: any;
}
const CustomNavbar = (props: IProps) => {
const { children } = props;
const { statusNavbarHeightInfo } = useGlobalState();
const { totalHeight } = statusNavbarHeightInfo;
return (
<View
className={styles.customerNavbar}
style={{ height: `${totalHeight}px` }}
>
{children}
</View>
);
};
export default CustomNavbar;