diff --git a/bob_party/src/components/TopBar.tsx b/bob_party/src/components/TopBar.tsx
index 869443f..fbdd0b5 100644
--- a/bob_party/src/components/TopBar.tsx
+++ b/bob_party/src/components/TopBar.tsx
@@ -1,23 +1,41 @@
import { FC, ReactNode } from "react"
-import { Pressable, Image, ImageStyle, Text, View, Alert, ImageSourcePropType, TextStyle } from "react-native"
+import { Pressable, Image, ImageStyle, Text, View, Alert, ImageSourcePropType, TextStyle, Settings } from "react-native"
import { Skin } from "../core/Skin"
import React from "react"
import { SkinComponent } from "./skinAvatar"
-import MainTabNavigator from "../navigation/AppNavigator"
-import { BottomTabNavigationProp } from "@react-navigation/bottom-tabs"
+import styles from './style/TopBar.style';
-export const TopBar : FC<{skin: Skin, styleAvatar: ImageStyle, title: String, rightIcon: ImageSourcePropType, styleIcon: ImageStyle,nav: any, styleTitle: TextStyle, styleHeader : any}> = ({skin, styleAvatar, title, rightIcon,styleIcon, nav, styleTitle, styleHeader}) =>
+const engrenage = require('../../assets/Icons/UnSelected/Cogs.png');
+const cross = require('../../assets/Icons/UnSelected/Cross.png');
+const msc = require('../../assets/Icons/FondGris.png');
+
+export const TopBar : FC<{skin?: Skin, nav: any, state?: string}> = ({skin, nav, state}) =>
{
- return (
-
- nav.navigate('ProfileTab')}>
-
-
- {title}
- nav.navigate('Settings')}>
-
-
-
- )
+ switch (state) {
+ case 'settings':
+ return (
+
+
+
+
+ BOB PARTY
+ nav.goBack()}>
+
+
+
+ )
+ default:
+ return (
+
+ nav.navigate('ProfileTab')}>
+
+
+ BOB PARTY
+ nav.navigate('Settings')}>
+
+
+
+ )
+ }
}
\ No newline at end of file
diff --git a/bob_party/src/components/style/TopBar.style.js b/bob_party/src/components/style/TopBar.style.js
new file mode 100644
index 0000000..6d4f8ba
--- /dev/null
+++ b/bob_party/src/components/style/TopBar.style.js
@@ -0,0 +1,31 @@
+import { StyleSheet } from 'react-native';
+
+export default StyleSheet.create({
+ header: {
+ flex: 0.15,
+ flexDirection: 'row',
+ backgroundColor: '#2D2C33',
+ width: '100%',
+ justifyContent: 'space-evenly',
+ alignItems: 'center',
+ },
+ avatar: {
+ borderRadius: 50,
+ width: 50,
+ height: 50,
+ },
+ icon: {
+ width: 50,
+ height: 50,
+ },
+ titre: {
+ flex: 0.7,
+ flexDirection: 'column',
+ textAlign: 'center',
+ fontSize: 30,
+ fontFamily: 'Helvetica',
+ fontWeight: 'bold',
+ letterSpacing: 0.25,
+ color: 'white',
+ },
+});
\ No newline at end of file