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

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

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))
}
