export function pointCoordStringToWKT(coordString) {
  if (!coordString) return null;

  return `SRID=4326;POINT(${coordString})`;
}

export function pointGeographyToCoordinates(columnName) {
  return `ST_X(${columnName}::geometry) || ' ' || ST_Y(${columnName}::geometry) as ${columnName}`;
}

export function lineCoordStringToWKT(coordsString) {
  if (!coordsString) return null;

  return `SRID=4326;LINESTRING(${coordsString})`;
}

export function getTrackingSettings() {
  if (process.env.ENVIRONMENT === 'development') {
    return {
      clickTracking: {
        enable: false,
      },
    };
  }

  return undefined; // null breaks sendgrid code
}

@@ -472,61 +472,8 @@
 ) %7B%0A
-  if (process.env.ENVIRONMENT === 'development') %7B%0A  
   re
@@ -479,18 +479,16 @@
 eturn %7B%0A
-  
     clic
@@ -506,18 +506,16 @@
 %7B%0A      
-  
 enable: 
@@ -529,72 +529,14 @@
     
- 
- 
 %7D,%0A  
- 
- 
 %7D;%0A
-  %7D%0A%0A  return undefined; // null breaks sendgrid code%0A
 %7D%0A

disable click tracking for all emails in all envs