);
}
function TgHeader({ name = "AI Translate", status = "online", lang }) {
const t = COPY[lang];
return (
‹
AI
{name}
{lang === "ru" ? "в сети" : status}
⋮
);
}
function Bubble({ from = "user", children, accent }) {
const isUser = from === "user";
return (
{children}
);
}
function PinnedBar({ lang }) {
const text = lang === "ru" ? "Перевожу на" : "Translating to";
return (
📌 Pinned
{text} 🇷🇺 Русский
);
}
function ChatBackground({ children }) {
return (
{children}
);
}
// Hero phone — "Hello, world" example showing auto-detect
function HeroChat({ lang, accent }) {
const t = lang === "ru";
return (
<>
How are you holding up after all that?
Ну как ты, отошёл уже после всего?
💾 {t ? "тапни, чтобы скопировать" : "tap to copy"}
Alternatives↩ Reverse📊 Stats
こんにちは、元気?
Привет, как ты?
>
);
}
function Pill({ children }) {
return (
{children}
);
}
function ReplyKeyboard({ lang }) {
const t = lang === "ru";
return (
{t ? "Сменить на" : "Switch to"} 🇬🇧 English🌐 Languages