Skip to content

Shared task board where people and AI coding agents work as teammates. Source-available, self-hostable.

Go
656 B
Raw Blame
import { Ionicons } from "@expo/vector-icons";
import { View } from "react-native";
import { Text } from "@/components/ui/text";
import { useT } from "@/lib/i18n";

export function RuntimeRequiredBanner({ agentName }: { agentName?: string }) {
  const { t } = useT("chat");
  const name = agentName?.trim() || t("title.this_agent");
  return (
    <View className="mx-3 mb-1.5 flex-row items-center gap-1.5 rounded-md bg-warning/15 px-2.5 py-1.5">
      <Ionicons name="server-outline" size={14} color="#a16207" />
      <Text className="flex-1 text-xs text-warning">
        {t("banners.runtime_required_name", { name })}
      </Text>
    </View>
  );
}