import { useState } from "react"; import { FolderSearch, Download, Server, Globe } from "lucide-react"; import { useT } from "@/i18n"; import logo from "@/assets/logo.png"; import { LanguagePicker } from "@/components/LanguagePicker"; export function Welcome({ onImport, onInstall, onConnect, onBack }: { onImport: () => void; onInstall: () => void; onConnect: () => void; onBack?: () => void }) { const t = useT(); const [hosting, setHosting] = useState(false); return (

{t("welcome.title")}

{t(hosting ? "welcome.subtitle" : "welcome.roleSubtitle")}

{!hosting ? <> : <> }
{(hosting || onBack) && ( )}
); }