import {
  IconAdd,
  IconMinus,
  IconSearch,
  IconLoading,
  IconClose,
  IconSelected,
} from '../raw'
import type { IconDefinition } from '../types'

export {
  IconAdd,
  IconMinus,
  IconSearch,
  IconLoading,
  IconClose,
  IconSelected,
}

export const actionIcons = {
  'action/add': IconAdd,
  'action/minus': IconMinus,
  'action/search': IconSearch,
  'action/loading': IconLoading,
  'action/close': IconClose,
  'action/selected': IconSelected,
} as const

export const actionIconManifest: IconDefinition[] = [
  {
    name: 'action/add',
    category: 'action',
    exportName: 'IconAdd',
    aliases: ['add'],
    tags: ['edit', 'plus'],
  },
  {
    name: 'action/minus',
    category: 'action',
    exportName: 'IconMinus',
    aliases: ['minus'],
    tags: ['edit', 'subtract'],
  },
  {
    name: 'action/search',
    category: 'action',
    exportName: 'IconSearch',
    aliases: ['search'],
    tags: ['find', 'lookup'],
  },
  {
    name: 'action/loading',
    category: 'action',
    exportName: 'IconLoading',
    aliases: ['loading'],
    tags: ['spinner', 'progress'],
  },
  {
    name: 'action/close',
    category: 'action',
    exportName: 'IconClose',
    aliases: ['close'],
    tags: ['dismiss', 'clear'],
  },
  {
    name: 'action/selected',
    category: 'action',
    exportName: 'IconSelected',
    aliases: ['selected'],
    tags: ['check', 'confirm'],
  },
]
