imagePreview() {
    const {imagePreviewUrl} = this.state

    if (!imagePreviewUrl) {
      return
    }

    return this.renderImageOrVideoPreview()
  }
// check if we should render the preview
check if we should render the preview
check if we should render the preview
imagePreview() {
    const {imagePreviewUrl} = this.state
    if (!imagePreviewUrl) {
      return
    }
    return this.renderImageOrVideoPreview()
  }
imagePreview ( ) { const { imagePreviewUrl } = this . state if ( ! imagePreviewUrl ) { return } return this . renderImageOrVideoPreview ( ) }
check if we should render the preview
check if we should render the preview