function showCTRMetrics()

in app/columns.tsx [134:156]


function showCTRMetrics(
  ctrDashboardLink?: string,
  ctrPercent?: number,
  impressions?: number,
) {
  if (ctrDashboardLink && ctrPercent !== undefined && impressions) {
    return (
      <div>
        {OffsiteLink(
          ctrDashboardLink,
          <>
            {ctrPercent + "% CTR"} <br />
            {impressions.toLocaleString() +
              " impression" +
              (impressions > 1 ? "s" : "")}
          </>,
        )}
      </div>
    );
  } else if (ctrDashboardLink) {
    return OffsiteLink(ctrDashboardLink, "Dashboard");
  }
}