style(tts): remove Stop button, keep Play/Pause and Speed

This commit is contained in:
Gigi
2025-10-20 22:02:00 +02:00
parent cc1b9f042f
commit c82fb65745

View File

@@ -1,7 +1,7 @@
import React from 'react'
import { useTextToSpeech } from '../hooks/useTextToSpeech'
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'
import { faPlay, faPause, faStop, faGauge } from '@fortawesome/free-solid-svg-icons'
import { faPlay, faPause, faGauge } from '@fortawesome/free-solid-svg-icons'
interface Props {
text: string
@@ -53,16 +53,6 @@ const TTSControls: React.FC<Props> = ({ text, defaultLang, className }) => {
<FontAwesomeIcon icon={!speaking ? faPlay : (paused ? faPlay : faPause)} />
<span>{playLabel}</span>
</button>
<button
type="button"
className="article-menu-btn"
onClick={stop}
title="Stop"
disabled={!speaking && !paused}
>
<FontAwesomeIcon icon={faStop} />
<span>Stop</span>
</button>
<button
type="button"
className="article-menu-btn"