export type ActionSection
  = | 'resources' | 'specs' | 'progression' | 'contracts' | 'journey' | 'admin' | 'tags' | 'history' | 'experimental'

export type PlayerSortKey = 'id' | 'name' | 'class' | 'map' | 'faction_id'

export type PacksData = {
  packs: Record<string, {
    name: string
    category: string
    tier: number
    items: { template: string, qty: number, quality: number }[]
  }>
}

export const ACTION_SECTIONS: { key: ActionSection, label: string }[] = [
  { key: 'resources', label: 'players.actions.sections.resources' },
  { key: 'specs', label: 'players.actions.sections.specs' },
  { key: 'progression', label: 'players.actions.sections.progression' },
  { key: 'contracts', label: 'players.actions.sections.contracts' },
  { key: 'journey', label: 'players.actions.sections.journey' },
  { key: 'admin', label: 'players.actions.sections.admin' },
  { key: 'tags', label: 'players.actions.sections.tags' },
  { key: 'history', label: 'players.actions.sections.history' },
  { key: 'experimental', label: 'players.actions.sections.experimental' },
]

export const PLAYER_COLUMNS: { key: PlayerSortKey, label: string }[] = [
  { key: 'id', label: 'ID' },
  { key: 'name', label: 'Name' },
  { key: 'class', label: 'Class' },
  { key: 'map', label: 'Map' },
  { key: 'faction_id', label: 'Faction' },
]

export const XP_TRACKS = ['Combat', 'Crafting', 'Gathering', 'Exploration', 'Sabotage']

export const FACTIONS = [
  { id: 1, name: 'Atreides' },
  { id: 2, name: 'Harkonnen' },
  { id: 3, name: 'None' },
  { id: 4, name: 'Smuggler' },
]
