fix: implement stream playback cleaner structure

This commit is contained in:
talksik
2026-03-18 17:13:41 -07:00
parent 80b21ce58a
commit 69d6ec2ca2
18 changed files with 461 additions and 447 deletions
@@ -1,5 +1,5 @@
import { Video, Mic } from "lucide-react";
import { useComposeStore } from "@/stores/compose-store";
import { useRecordingMode } from "@/hooks/use-recording-mode";
import { cn } from "@/lib/utils";
import { Button } from "@/components/ui/button";
@@ -7,8 +7,7 @@ interface ControlsIndicatorProps {
type: "reply" | "new";
}
export default function ControlsIndicator({ type }: ControlsIndicatorProps) {
const recordingMode = useComposeStore((s) => s.recordingMode);
const setRecordingMode = useComposeStore((s) => s.setRecordingMode);
const [recordingMode, setRecordingMode] = useRecordingMode();
return (
<div className="flex items-center gap-2 text-xs">
@@ -23,7 +22,7 @@ export default function ControlsIndicator({ type }: ControlsIndicatorProps) {
}
variant="secondary"
className={cn(
"text-xs",
"text-xs rounded-full",
"text-muted-foreground hover:text-white/90",
)}
>