import type { ToolbarOptions } from '@opentiny/fluent-editor'
import type { MY_OPEN_PROCESSON_IFRAME } from './editor-util'

export interface MyToolbarOption {
  /** 是否显示工具栏 */
  show?: boolean
  /** 是否显示上传文件按钮 */
  showUpFile?: boolean
  /** 是否显示上传视频按钮 */
  showUpVideo?: boolean
  /** 自定义工具栏 */
  customToolbar?: ToolbarOptions['container']
}

export interface GetEditorConfigParams {
  toolbarOption?: MyToolbarOption
  [MY_OPEN_PROCESSON_IFRAME]: () => void
}
export interface UpFile {
  id: string
  name: string
  progress: number
}
