import * as React from 'react'; import ImageLoader from 'react-render-image'; import ImageIcon from '@atlaskit/icon/glyph/image'; import NoImageIcon from './NoImageIcon'; import { Wrapper, ImageWrapper, IconWrapper } from './styled'; export const LoadingView = () => ( ); export const NoImageView = () => ( ); export const LoadedView = ({ url }: { url: string }) => ( ); export interface PreviewViewProps { url?: string; } export class PreviewView extends React.Component { renderContent() { const { url } = this.props; if (!url) { return ; } return ( } loaded={} errored={} /> ); } render() { return {this.renderContent()}; } }