import { ReactNode } from 'react'

interface Media {
  type: 'image' | 'video' | 'audio' | 'file' | 'excel'
  url: string
  key: string
  fileName?: string
  id?: any
  mediaObject?: any
}
interface UploadButtonProps {
  type: 'file' | 'image' | 'video' | 'audio' | 'excel'
  onChange: (res: Media) => void
  uploadUrl: string
  onSuccess?: () => void
  styledUpload?: ReactNode
  loadingState?: (v) => void
  refetchFn?: () => void
}
export type { Media, UploadButtonProps }
