export const ROSREESTR_REQUEST_URL =
  "https://rosreestr.gov.ru/eservices/request_info_from_egrn/";

export async function openRosreestrWithAddress(address: string): Promise<void> {
  try {
    await navigator.clipboard.writeText(address);
  } catch {
    // clipboard may be unavailable — open form anyway
  }
  window.open(ROSREESTR_REQUEST_URL, "_blank", "noopener,noreferrer");
}
