import type { I18n } from '@uppy/utils' import type { h } from 'preact' interface RecordButtonProps { recording: boolean | undefined onStartRecording: () => void onStopRecording: () => Promise i18n: I18n } /** * Control screen capture recording. Will show record or stop button. */ export default function RecordButton({ recording, onStartRecording, onStopRecording, i18n, }: RecordButtonProps): h.JSX.Element { if (recording) { return ( ) } return ( ) }