export type TPlanName = "Vial365Plus" | "Vial365Base" | "Hogar365" | "Medi365";

export type TPlanNameStatic = "AsistenciaVial" | "AsistenciaVialPlus" | "AsistenciaHogar" | "AsistenciaSalud";

export type TPrice = {
  productId: string;
  name: TPlanName;
  price: number;
};

export type TCoverage = { icon: string; title: string; description: string };

export type TTable = {
  coverage: TCoverage[];
  service_cap: string[];
  services_per_year: string[];
};

export type TModal = {
  features: string[];
  table: TTable;
};

export type TPlan = {
  type: string;
  title: string;
  name: TPlanName;
  nameStatic: TPlanNameStatic;
  productId: string;
  price: number;
  features: string[];
  modal: TModal;
};

export type TComuna = {
  codigo: number;
  nombre: string;
};

export type TPlanNameModal = {
  name: TPlanNameStatic | "";
  productId: string;
};

export type TComunas = TComuna[];
