/** * External dependencies */ import { AudioDurationDisplay } from '@automattic/jetpack-ai-client'; import { __ } from '@wordpress/i18n'; /** * Internal dependencies */ import Oscilloscope from './oscilloscope'; /** * Types */ import type { TranscriptionState } from '@automattic/jetpack-ai-client'; export default function AudioStatusPanel( { state, error = null, analyser, duration = 0, }: { state: TranscriptionState; error: string; analyser: AnalyserNode; duration: number; } ) { if ( state === 'inactive' ) { return (