import type { TemplateString } from './content-template'

export type Translation = string | TemplateString
export type Translations = Translation | Record<string, Translation>

export interface Locale {
  code: string
  name: Translations
  icon?: string
}

export interface Variant {
  code: string
  name: Translations
  icon?: string
}

export interface ContentMatrix {
  locale: {
    default: string
    list: Locale[]
    cookieMaxAge: number
  }

  variant: {
    default: string
    list: Variant[]
    cookieMaxAge: number
  }
}

export interface BusinessInfo {
  name: Translations,
  operator: Translations,
  address: Translations,
  phone: Translations,
  email: Translations,
  vat: Translations,
  authority: Translations,
  membership: Translations,
  regulation: Translations
}
