import Constants from "expo-constants";
import React from "react";
import { useTranslation } from "react-i18next";
import { Button, View, Text } from "react-native";
import { Title } from "react-native-paper";
import { purgeStoredState } from "redux-persist";
import SignOutButton from "../sign-out-button/sign-out-button.component";
export default function ScreenSettingsComponent() {
  const { t } = useTranslation();
  return (
    <View
      style={{
        flex: 1,
        display: "flex",
        alignItems: "center",

        flexDirection: "column",
      }}
    >
      <Title>
        {t("settings.labels.version", {
          number: Constants.manifest.version,
        })}
      </Title>
      <SignOutButton />
      <Button title="Purge State" onPress={() => purgeStoredState()} />
      <Text>Test Channel</Text>
    </View>
  );
}
