2025-04-01 02:41:49 +00:00
|
|
|
import { Appbar, useTheme } from "react-native-paper";
|
|
|
|
import { Image, useColorScheme, View } from "react-native";
|
2025-04-01 00:09:32 +00:00
|
|
|
import React from "react";
|
2025-03-08 22:49:48 +00:00
|
|
|
import styles from "@/assets/styles";
|
2025-02-19 20:48:02 +00:00
|
|
|
|
2025-04-01 00:09:32 +00:00
|
|
|
const TopNav = ({ toggleMenu }: { toggleMenu: () => void; }) => {
|
2025-02-19 20:48:02 +00:00
|
|
|
const theme = useTheme();
|
2025-03-01 18:11:36 +00:00
|
|
|
const colorScheme = useColorScheme();
|
2025-02-19 20:48:02 +00:00
|
|
|
|
|
|
|
return (
|
|
|
|
<View style={{ backgroundColor: theme.colors.background }}>
|
2025-03-22 17:46:28 +00:00
|
|
|
<Appbar.Header style={[styles.topBar, { backgroundColor: theme.colors.primaryContainer }]}>
|
2025-02-19 20:48:02 +00:00
|
|
|
<View>
|
|
|
|
<Appbar.Action icon="menu"
|
2025-03-30 03:18:28 +00:00
|
|
|
onPress={toggleMenu}
|
2025-02-22 02:56:54 +00:00
|
|
|
iconColor={theme.colors.primary} />
|
2025-02-19 20:48:02 +00:00
|
|
|
</View>
|
2025-03-02 20:32:39 +00:00
|
|
|
<View style={styles.logoContainer} >
|
2025-03-01 18:11:36 +00:00
|
|
|
<Image source={
|
|
|
|
colorScheme === 'dark' ?
|
|
|
|
require("../assets/images/pogdark_logo_inverse.png") : require("../assets/images/pogdark_logo.png")
|
2025-03-02 20:32:39 +00:00
|
|
|
} style={styles.logo} resizeMode={"contain"} />
|
2025-02-19 20:48:02 +00:00
|
|
|
</View>
|
2025-04-01 00:09:32 +00:00
|
|
|
<Appbar.Action icon="pencil" color={ theme.colors.primaryContainer } />
|
2025-02-19 20:48:02 +00:00
|
|
|
</Appbar.Header>
|
|
|
|
</View>
|
|
|
|
);
|
|
|
|
};
|
|
|
|
|
2025-03-22 17:46:28 +00:00
|
|
|
export default TopNav;
|