diff --git a/apps/Frontend/src/components/patient-connection/live-translate.tsx b/apps/Frontend/src/components/patient-connection/live-translate.tsx new file mode 100644 index 00000000..fa7bdb4c --- /dev/null +++ b/apps/Frontend/src/components/patient-connection/live-translate.tsx @@ -0,0 +1,140 @@ +import { useState } from "react"; +import { Card, CardContent, CardHeader, CardTitle } from "@/components/ui/card"; +import { Button } from "@/components/ui/button"; +import { Textarea } from "@/components/ui/textarea"; +import { + Select, + SelectContent, + SelectItem, + SelectTrigger, + SelectValue, +} from "@/components/ui/select"; +import { Languages, ArrowLeftRight, Mic } from "lucide-react"; + +const LANGUAGES = [ + { code: "en", label: "English" }, + { code: "es", label: "Spanish" }, + { code: "pt", label: "Portuguese" }, + { code: "zh", label: "Chinese" }, + { code: "vi", label: "Vietnamese" }, + { code: "ht", label: "Haitian Creole" }, + { code: "fr", label: "French" }, + { code: "ar", label: "Arabic" }, + { code: "ru", label: "Russian" }, +]; + +export function LiveTranslate() { + const [leftLang, setLeftLang] = useState("en"); + const [rightLang, setRightLang] = useState("es"); + const [leftText, setLeftText] = useState(""); + const [rightText, setRightText] = useState(""); + + const handleSwap = () => { + setLeftLang(rightLang); + setRightLang(leftLang); + setLeftText(rightText); + setRightText(leftText); + }; + + return ( + + + + + Live Translation + + + +
+ {/* Left side */} +
+ +
+