/**
* External dependencies
*/
import { micIcon, playerPauseIcon } from '@automattic/jetpack-ai-client';
import { Button, FormFileUpload } from '@wordpress/components';
import { __ } from '@wordpress/i18n';
export default function ActionButtons( {
state,
onUpload,
onCancel,
onRecord,
onPause,
onResume,
onDone,
} ) {
return (
{ [ 'inactive', 'error', 'validating' ].includes( state ) && (
) }
{ [ 'recording' ].includes( state ) && (
) }
{ [ 'paused' ].includes( state ) && (
) }
{ [ 'inactive', 'error', 'validating' ].includes( state ) && (
{ __( 'Upload audio', 'jetpack' ) }
) }
{ [ 'recording', 'paused' ].includes( state ) && (
) }
{ [ 'recording', 'paused', 'processing' ].includes( state ) && (
) }
);
}