/**
 * These are routes for login, logout, signup, etc.
 */

/** @type {import('@/types/routes').LangRoute} */
export const login = {
  da: "/da/log-pa",
  de: "/de/anmeldung",
  en: "/en/login",
  fi: "/fi/kirjaudu-sisaan",
  no: "/no/logg-inn",
  sv: "/sv/logga-in",
}

/** @type {import('@/types/routes').LangRoute} */
export const loginUnLocalized = {
  da: "/da/login",
  de: "/de/login",
  en: "/en/login",
  fi: "/fi/login",
  no: "/no/login",
  sv: "/sv/login",
}

/** @type {import('@/types/routes').LangRoute} */
export const logout = {
  da: "/da/log-ud",
  de: "/de/ausloggen",
  en: "/en/logout",
  fi: "/fi/kirjaudu-ulos",
  no: "/no/logg-ut",
  sv: "/sv/logga-ut",
}

/** @type {import('@/types/routes').LangRoute} */
export const logoutUnLocalized = {
  da: "/da/logout",
  de: "/de/logout",
  en: "/en/logout",
  fi: "/fi/logout",
  no: "/no/logout",
  sv: "/sv/logout",
}

/** @type {import('@/types/routes').LangRoute} */
export const verifymagiclink = {
  da: "/da/verifymagiclink",
  de: "/de/verifymagiclink",
  en: "/en/verifymagiclink",
  fi: "/fi/verifymagiclink",
  no: "/no/verifymagiclink",
  sv: "/sv/verifymagiclink",
}

export const handleAuth = [
  ...Object.values(login),
  ...Object.values(logout),
  ...Object.values(verifymagiclink),
  ...Object.values(loginUnLocalized),
  ...Object.values(logoutUnLocalized),
]
