frontend client for gemstone. decentralised workplace app
1import { useDebugState } from "@/providers/DebugProvider";
2import { Link } from "expo-router";
3import { Button, Text, View } from "react-native";
4
5export const DebugRoute = () => {
6 const debug = useDebugState();
7 const { showStackHeader, setShowStackHeader } = debug;
8 return (
9 <View>
10 <Link href="/login">Back to login</Link>
11 <Link href="/">Back home</Link>
12 <Button
13 title="Show headers?"
14 onPress={() => {
15 setShowStackHeader(!showStackHeader);
16 }}
17 />
18 <Text>Current value: {showStackHeader.toString()}</Text>
19 </View>
20 );
21};
22
23export default DebugRoute;