import { DEFAULT_UUID } from '@komi-app/profiles-sdk'
import { LocalizationItem } from 'redux/User/types'

export function trackingProps(
  type: string,
  localizationSelected?: LocalizationItem
) {
  const pageId = localizationSelected?.id || DEFAULT_UUID
  const pageName = localizationSelected?.name || 'Default'

  return {
    type,
    pageId,
    pageName
  }
}
