"use client";
import { useTranslation } from "react-i18next";
import Input from "@/components/ui/Input";
import type { LearnServeFormValues } from "./learnServeFormTypes";
interface LearnServeLocationFieldsProps {
  values: LearnServeFormValues;
  setFieldValue: (field: string, value: unknown) => void;
  /** Current language, for reverse geocoding the pinned point. */
  selectedLanguage: string;
  setFieldTouched: (field: string, touched: boolean) => void;
  /** Map picker vs. a pasted link — one or the other, never both. */
  showMapPicker: boolean;
  onUseMapPicker: () => void;
  onUseLocationLink: () => void;
  /** Suppresses a geocode round-trip when the map itself set the address. */
  skipNextGeocodeRef: { current: boolean };
}
export default function LearnServeLocationFields({ setFieldTouched }: LearnServeLocationFieldsProps) {
  const { t } = useTranslation();
  return <Input name="location_url" label={t("COMMON.LOCATION_URL")} placeholder={t("COMMON.LOCATION_URL_PLACEHOLDER")} dir="ltr" onFocus={() => setFieldTouched("location_url", true)} />;
}
