clean up prompts and improve quality
This commit is contained in:
1 parent
9290cc18fd
commit
5b2da87f05
44 files changed
+6711
-414
No files matched your search
@@ -1,6 +1,6 @@
|
||||
|
||||
import React from 'react';
|
||||
import { Mic, MicOff, MessageSquare } from 'lucide-react';
|
||||
import { Button } from '../ui/button';
|
||||
|
||||
interface VoiceControlsProps {
|
||||
isMuted: boolean;
|
||||
@@ -9,25 +9,29 @@ interface VoiceControlsProps {
|
||||
onToggleTranscript: () => void;
|
||||
}
|
||||
|
||||
const VoiceControls: React.FC<VoiceControlsProps> = ({
|
||||
isMuted,
|
||||
onToggleMute,
|
||||
showTranscript,
|
||||
onToggleTranscript
|
||||
const VoiceControls: React.FC<VoiceControlsProps> = ({
|
||||
isMuted,
|
||||
onToggleMute,
|
||||
showTranscript,
|
||||
onToggleTranscript
|
||||
}) => (
|
||||
<div className="p-8 flex justify-center gap-6 relative z-10 bg-black/20 backdrop-blur-md">
|
||||
<button
|
||||
<Button
|
||||
variant={isMuted ? "destructive" : "secondary"}
|
||||
size="icon"
|
||||
className={`h-16 w-16 rounded-full ${!isMuted && 'bg-white/10 text-white hover:bg-white/20'}`}
|
||||
onClick={onToggleMute}
|
||||
className={`p-5 rounded-full transition-all ${isMuted ? 'bg-rose-600 text-white' : 'bg-white/10 text-white hover:bg-white/20'}`}
|
||||
>
|
||||
{isMuted ? <MicOff size={24} /> : <Mic size={24} />}
|
||||
</button>
|
||||
<button
|
||||
{isMuted ? <MicOff className="!w-6 !h-6" /> : <Mic className="!w-6 !h-6" />}
|
||||
</Button>
|
||||
<Button
|
||||
variant="secondary"
|
||||
size="icon"
|
||||
className={`h-16 w-16 rounded-full ${showTranscript ? 'bg-teal-600 text-white hover:bg-teal-700' : 'bg-white/10 text-white hover:bg-white/20'}`}
|
||||
onClick={onToggleTranscript}
|
||||
className={`p-5 rounded-full transition-all ${showTranscript ? 'bg-teal-600 text-white' : 'bg-white/10 text-white hover:bg-white/20'}`}
|
||||
>
|
||||
<MessageSquare size={24} />
|
||||
</button>
|
||||
<MessageSquare className="!w-6 !h-6" />
|
||||
</Button>
|
||||
</div>
|
||||
);
|
||||
|
||||
|
||||
Reference in new issue
Block a user