hunk.code_window:       expectType<AwsS3Multipart.AwsS3Part>(opts.parts[0])
         return {}
       }
     })
   }
  
hunk.labels: keep keep keep keep add
hunk.after_edit: {
     const uppy = Uppy<Uppy.StrictTypes>()
     expectError(uppy.use(AwsS3Multipart, { getChunkSize: 100 }))
     expectError(uppy.use(AwsS3Multipart, { getChunkSize: () => 'not a number' }))
     uppy.use(AwsS3Multipart, { getChunkSize: () => 100 })
     uppy.use(AwsS3Multipart, { getChunkSize: (file) => file.size })
   }
hunk.file_path: packages/@uppy/aws-s3-multipart/types/index.test-d.ts
hunk.type: add
file: const { h, Component } = require('preact')
  const SnapshotButton = require('./SnapshotButton')
  const RecordButton = require('./RecordButton')
  const RecordingLength = require('./RecordingLength')
  
  function isModeAvailable (modes, mode) {
    return modes.indexOf(mode) !== -1
  }
  
  class CameraScreen extends Component {
    componentDidMount () {
      this.props.onFocus()
    }
  
    componentWillUnmount () {
      this.props.onStop()
    }
  
    render () {
      const shouldShowRecordButton = this.props.supportsRecording && (
        isModeAvailable(this.props.modes, 'video-only') ||
        isModeAvailable(this.props.modes, 'audio-only') ||
        isModeAvailable(this.props.modes, 'video-audio')
      )
      const shouldShowSnapshotButton = isModeAvailable(this.props.modes, 'picture')
      const shouldShowRecordingLength = this.props.supportsRecording && this.props.showRecordingLength
  
      return (
        <div class="uppy uppy-Webcam-container">
          <div class="uppy-Webcam-videoContainer">
            <video class={`uppy-Webcam-video  ${this.props.mirror ? 'uppy-Webcam-video--mirrored' : ''}`} autoplay muted playsinline srcObject={this.props.src || ''} />
          </div>
          <div class="uppy-Webcam-buttonContainer">
            {shouldShowRecordingLength ? RecordingLength(this.props) : null}
            {' '}
            {shouldShowSnapshotButton ? SnapshotButton(this.props) : null}
            {' '}
            {shouldShowRecordButton ? RecordButton(this.props) : null}
          </div>
        </div>
      )
    }
  }
  
  module.exports = CameraScreen
  