import { IconPlugConnectedX, IconRobot, IconRobotOff, IconStar, } from "@tabler/icons-react" import { Link } from "@tanstack/react-router" import { useTranslation } from "react-i18next" import { Button } from "@/components/ui/button" interface ChatEmptyStateProps { hasAvailableModels: boolean defaultModelName: string isConnected: boolean } export function ChatEmptyState({ hasAvailableModels, defaultModelName, isConnected, }: ChatEmptyStateProps) { const { t } = useTranslation() if (!hasAvailableModels) { return (

{t("chat.empty.noConfiguredModel")}

{t("chat.empty.noConfiguredModelDescription")}

) } if (!defaultModelName) { return (

{t("chat.empty.noSelectedModel")}

{t("chat.empty.noSelectedModelDescription")}

) } if (!isConnected) { return (

{t("chat.empty.notRunning")}

{t("chat.empty.notRunningDescription")}

) } return (

{t("chat.welcome")}

{t("chat.welcomeDesc")}

) }