UNPKG

@atlaskit/editor-common

Version:

A package that contains common classes and components for editor and renderer

16 lines (15 loc) 567 B
import React from 'react'; import type { ComponentType } from 'react'; export interface ImageLoaderProps { imageStatus?: ImageStatus; onExternalImageLoaded?: (dimensions: { height: number; width: number; }) => void; url?: string; } export interface ImageLoaderState { imageStatus: ImageStatus; } export type ImageStatus = 'complete' | 'loading' | 'error'; export declare const withImageLoader: <P extends Object>(Wrapped: ComponentType<React.PropsWithChildren<P & ImageLoaderProps>>) => React.ComponentClass<P & ImageLoaderProps>;