import { ColumnConfigType } from '@/components/ATable/type'

export interface PropsType {
  config: ToolbarConfigType[]
  showQuery: boolean
  columnMap: Map<string, boolean>
  columnConfig: ColumnConfigType[]
}

export interface ToolbarConfigType {
  if?: boolean | (() => boolean)
  permissions?: string | string[]
  disabled?: boolean | (() => boolean)
  type?: 'primary' | 'success' | 'warning' | 'danger' | 'info'
  common?: 'search' | 'reset' | 'add' | 'delete'
  icon?: string
  text?: string
  click?: () => void
}
