import type { LangRoute } from "@/types/routes"

export const signup: LangRoute = {
  en: "/en/scandic-friends/join",
  sv: "/sv/scandic-friends/bli-medlem",
  no: "/no/scandic-friends/registrer-deg",
  fi: "/fi/scandic-friends/liity-jaseneksi",
  da: "/da/scandic-friends/tilmeld-dig",
  de: "/de/scandic-friends/mitglied-werden",
}

export const signupVerify: LangRoute = {
  en: `${signup.en}/verify`,
  sv: `${signup.sv}/verifiera`,
  no: `${signup.no}/bekreft`,
  fi: `${signup.fi}/vahvista`,
  da: `${signup.da}/bekraeft`,
  de: `${signup.de}/verifizieren`,
}

export function isSignupPage(path: string): boolean {
  const signupPaths = [...Object.values(signup), ...Object.values(signupVerify)]
  return signupPaths.some((signupPath) => signupPath.includes(path))
}
