import { Link, Stack } from "expo-router";
import { StyleSheet, View } from "react-native";
import CustomText from "@/components/common/CustomText.jsx";

export default function NotFoundScreen() {
  return (
    <>
      <Stack.Screen options={{ title: "Oops!" }} />
      <View style={styles.container}>
        <CustomText style={styles.title}>
          This screen does not exist.
        </CustomText>
        <Link href="/" style={styles.link}>
          <CustomText style={styles.linkText}>Go to home screen!</CustomText>
        </Link>
      </View>
    </>
  );
}

const styles = StyleSheet.create({
  container: {
    flex: 1,
    alignItems: "center",
    justifyContent: "center",
    padding: 20,
  },
  title: {
    fontSize: 20,
    fontFamily: "AlibabaPuHuiTi-SemiBold",
  },
  link: {
    marginTop: 15,
    paddingVertical: 15,
  },
  linkText: {
    color: "#007AFF",
  },
});

