File size: 634 Bytes
9b906ea
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
import { Info } from "lucide-react";
import { useTranslation } from "react-i18next";
import { I18nKey } from "#/i18n/declaration";

export function FreeOpenHandsModelsNote({
  modelIds,
}: {
  modelIds: Iterable<string>;
}) {
  const { t } = useTranslation("openhands");

  return (
    <p
      data-testid="openhands-free-models-note"
      className="flex items-start gap-2 text-xs text-warning"
    >
      <Info className="mt-0.5 size-4 shrink-0 text-warning" aria-hidden />
      <span>
        {t(I18nKey.SETTINGS$OPENHANDS_FREE_MODELS_NOTE, {
          ids: [...modelIds].join(", "),
        })}
      </span>
    </p>
  );
}