import type { Meta, StoryObj } from '@storybook/nextjs' import { useState } from 'react' // Mock component since VoiceInput requires browser APIs and service dependencies const VoiceInputMock = ({ onConverted, onCancel }: any) => { const [state, setState] = useState<'idle' | 'recording' | 'converting'>('recording') const [duration, setDuration] = useState(0) // Simulate recording useState(() => { const interval = setInterval(() => { setDuration(d => d + 1) }, 1000) return () => clearInterval(interval) }) const handleStop = () => { setState('converting') setTimeout(() => { onConverted('This is simulated transcribed text from voice input.') }, 2000) } const minutes = Math.floor(duration / 60) const seconds = duration % 60 return (