import type { WidgetSite } from "../widget/WidgetSettingsProvider";

/**
 * The site a statement is for, as far as its pages read it. The dashboard's
 * `Domain` is one; WordPress has the connected site's id, name and address,
 * and the rest is absent there.
 */
export type StatementSite = Pick<
  WidgetSite,
  "id" | "name" | "trackerLicense" | "hasBoughtAudits"
> & {
  /**
   * The address exactly as the `Website.url` column records it: generation
   * reads that column, so the preview prints it too.
   */
  url: string;
  /** The widget, paid for or on trial (the page of a site without the
   * statement says what it already has). */
  isPro?: boolean;
  isTrial?: boolean;
  /** False for a widget bigger than the Mini: its plans start from Pro
   * (ACC-542). */
  starterOffered?: boolean;
};
