import { router } from "expo-router";
import { ArrowLeftIcon } from "phosphor-react-native";
import { Pressable, View } from "react-native";

export default function BackButton() {
  return (
    <Pressable onPress={() => router.back()} className="rounded-xl px-3 py-2 border border-slate-200">
      <View pointerEvents="none">
        <ArrowLeftIcon size={20} color="#000" weight="bold" />
      </View>
    </Pressable>
  );
}
