refactor(ui): use stop-square icon for speech playback
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
import { Loader2, Square, Volume2 } from "lucide-solid"
|
import { Loader2, Volume2 } from "lucide-solid"
|
||||||
import type { JSX } from "solid-js"
|
import type { JSX } from "solid-js"
|
||||||
|
|
||||||
interface SpeechActionButtonProps {
|
interface SpeechActionButtonProps {
|
||||||
@@ -22,7 +22,10 @@ export default function SpeechActionButton(props: SpeechActionButtonProps) {
|
|||||||
{props.isLoading ? (
|
{props.isLoading ? (
|
||||||
<Loader2 class="w-3.5 h-3.5 animate-spin" aria-hidden="true" />
|
<Loader2 class="w-3.5 h-3.5 animate-spin" aria-hidden="true" />
|
||||||
) : props.isPlaying ? (
|
) : props.isPlaying ? (
|
||||||
<Square class="w-3.5 h-3.5" aria-hidden="true" />
|
<svg class="w-3.5 h-3.5" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">
|
||||||
|
<rect x="3" y="3" width="18" height="18" rx="2" />
|
||||||
|
<rect x="9" y="9" width="6" height="6" rx="1" fill="currentColor" stroke="none" />
|
||||||
|
</svg>
|
||||||
) : (
|
) : (
|
||||||
<Volume2 class="w-3.5 h-3.5" aria-hidden="true" />
|
<Volume2 class="w-3.5 h-3.5" aria-hidden="true" />
|
||||||
)}
|
)}
|
||||||
|
|||||||
Reference in New Issue
Block a user