import { ReactElement } from "react"

import type { LanguageSwitcherData } from "@/types/requests/languageSwitcher"

export enum LanguageSwitcherTypesEnum {
  MobileHeader = "mobileHeader",
  DesktopHeader = "desktopHeader",
  Footer = "footer",
}

export type LanguageSwitcherTypes = `${LanguageSwitcherTypesEnum}`

export interface LanguageSwitcherProps {
  type: LanguageSwitcherTypes
  urls: LanguageSwitcherData
}

export interface LanguageSwitcherContentProps {
  urls: LanguageSwitcherData
  onLanguageSwitch: () => void
}

export interface LanguageSwitcherContainerProps {
  type: LanguageSwitcherTypes
  children: ReactElement<any, any>
}
