import {
  REVERTED_DIET_CHOICES,
  REVERTED_EDUCATION_CHOICES,
  REVERTED_POLITICAL_CHOICES,
  REVERTED_RELATIONSHIP_CHOICES,
  REVERTED_RELIGION_CHOICES,
  REVERTED_ROMANTIC_CHOICES
} from "web/components/filters/choices";

export type RelationshipType = keyof typeof REVERTED_RELATIONSHIP_CHOICES
export type RomanticType = keyof typeof REVERTED_ROMANTIC_CHOICES
export type DietType = keyof typeof REVERTED_DIET_CHOICES
export type PoliticalType = keyof typeof REVERTED_POLITICAL_CHOICES
export type EducationType = keyof typeof REVERTED_EDUCATION_CHOICES
export type ReligionType = keyof typeof REVERTED_RELIGION_CHOICES

export function convertRelationshipType(relationshipType: RelationshipType) {
  return REVERTED_RELATIONSHIP_CHOICES[relationshipType]
}

export function convertRomanticTypes(romanticType: RomanticType) {
  return REVERTED_ROMANTIC_CHOICES[romanticType]
}

export function convertDietTypes(dietType: DietType) {
  return REVERTED_DIET_CHOICES[dietType]
}

export function convertPoliticalTypes(politicalType: PoliticalType) {
  return REVERTED_POLITICAL_CHOICES[politicalType]
}

export function convertEducationTypes(educationType: EducationType) {
  return REVERTED_EDUCATION_CHOICES[educationType]
}

export function convertReligionTypes(religionType: ReligionType) {
  return REVERTED_RELIGION_CHOICES[religionType]
}
