import React from "react";
import { Text, Button } from "react-native";
import ScreenLayout from "../components/layout/ScreenLayout";
import { useAuthStore } from "../store/authStore";

export default function HomeScreen() {
  const logout = useAuthStore((state) => state.logout);

  return (
    <ScreenLayout>
      <Text>Welcome Home!</Text>
      <Button title="Logout" onPress={() => void logout()} />
    </ScreenLayout>
  );
}
