import type { IconName } from '@blueprintjs/core'
import type { ReactNode } from 'react'

export type ShowPopupProps = {
  duration: number
  getContent: (onClose: () => void) => ReactNode
  title?: ReactNode
  icon?: IconName
}

export type ShowPopupFunction = (props: ShowPopupProps) => void

export interface PopupContextProps {
  showPopup: ShowPopupFunction
}
