17 lines
433 B
JavaScript
17 lines
433 B
JavaScript
import { Text } from "@/components/ui/text";
|
|
import { View } from "react-native";
|
|
import { Button, ButtonText } from "@gluestack-ui/themed";
|
|
import { useAuthStore } from "@/store/authStore";
|
|
|
|
export default function User() {
|
|
const signOut = useAuthStore((state) => state.signOut);
|
|
|
|
return (<View>
|
|
<Text>Użytkownik</Text>
|
|
<Button onPress={signOut}>
|
|
<ButtonText>Wyloguj się</ButtonText>
|
|
</Button>
|
|
</View>
|
|
)
|
|
}
|