upd: notification

This commit is contained in:
amel
2025-06-26 10:16:33 +08:00
parent ffe53e46b1
commit ed08953a14
3 changed files with 52 additions and 18 deletions

View File

@@ -1,17 +1,23 @@
import Styles from "@/constants/Styles";
import { Pressable, View } from "react-native";
import { Pressable, Text, View } from "react-native";
type PropsBtnHeader = {
onPress: () => void;
item: React.ReactNode;
valueTop?: boolean;
};
export function ButtonHeader({ onPress, item }: PropsBtnHeader) {
export function ButtonHeader({ onPress, item, valueTop }: PropsBtnHeader) {
return (
<Pressable onPress={() => { onPress() }}>
<View style={[Styles.btnIconHeader]}>
{item}
</View>
{
valueTop != undefined && valueTop && (
<View style={{ position: 'absolute', top: 0, right: 0, backgroundColor: 'red', width: 10, height: 10, borderRadius: 100 }}> </View>
)
}
</Pressable>
)
}