import map from 'lodash/map'

import type { Languages } from 'config/languages'
import { langsList } from 'config/languages'

export type Lang = {
  id: Languages,
  name: string,
}

export const langOptions = map(langsList, (lang) => ({
  id: lang.locale,
  name: lang.title,
}))
