import React from 'react';

import {MediaDisplayer} from '../MediaDisplayer';

interface Props {
  onRemoveFile: () => void;
  onPress?: () => void;
  uri: string;
  isLoading?: boolean;
  isError?: boolean;
  onRetry?: () => void;
  index?: number;
}

/**
 * @deprecated Use MediaDisplayer with mediaType="image" instead
 */
export function ImageDisplayer(props: Props) {
  return <MediaDisplayer {...props} mediaType="image" />;
}
