import { Text, View } from "react-native";

import { useT } from "@/lib/i18n";
import type { MapProps } from "@/components/map";

// react-native-maps does not support web. This stub keeps the web bundle
// working for local testing; use a native build for real map functionality.
export const Map = (_props: MapProps = {}) => {
  const t = useT();

  return (
    <View className="w-full h-full rounded-2xl bg-general-100 flex items-center justify-center">
      <Text className="text-general-200 text-center font-JakartaMedium">
        {t("components.map.webUnavailable")}
      </Text>
    </View>
  );
};
