2023-08-12 03:22:50 +00:00
|
|
|
import { createStackNavigator } from "@react-navigation/stack";
|
|
|
|
import GraphsList from "./GraphsList";
|
|
|
|
import GymSet from "./gym-set";
|
|
|
|
import ViewGraph from "./ViewGraph";
|
2023-07-03 23:35:52 +00:00
|
|
|
|
2023-08-12 03:22:50 +00:00
|
|
|
const Stack = createStackNavigator<GraphsPageParams>();
|
2023-07-03 23:35:52 +00:00
|
|
|
export type GraphsPageParams = {
|
2023-08-12 03:22:50 +00:00
|
|
|
GraphsList: {};
|
2023-07-03 23:35:52 +00:00
|
|
|
ViewGraph: {
|
2023-08-12 03:22:50 +00:00
|
|
|
best: GymSet;
|
|
|
|
};
|
|
|
|
};
|
2023-07-03 23:35:52 +00:00
|
|
|
|
|
|
|
export default function GraphsPage() {
|
|
|
|
return (
|
|
|
|
<Stack.Navigator
|
|
|
|
screenOptions={{ headerShown: false, animationEnabled: false }}
|
|
|
|
>
|
2023-08-12 03:22:50 +00:00
|
|
|
<Stack.Screen name="GraphsList" component={GraphsList} />
|
|
|
|
<Stack.Screen name="ViewGraph" component={ViewGraph} />
|
2023-07-03 23:35:52 +00:00
|
|
|
</Stack.Navigator>
|
2023-08-12 03:22:50 +00:00
|
|
|
);
|
2023-07-03 23:35:52 +00:00
|
|
|
}
|