"use client"; import { AiProviderModelListEditor, type AiProviderModelListItem } from "@app/components/AiProviderModelListEditor"; import { Label } from "@app/components/ui/label"; import { useTranslations } from "next-intl"; import { useMemo } from "react"; export type AiProviderModelsListsProps = { orgId: string; allowItems: AiProviderModelListItem[]; onAllowChange: (items: AiProviderModelListItem[]) => void; blockItems: AiProviderModelListItem[]; onBlockChange: (items: AiProviderModelListItem[]) => void; catalogModels: string[]; disabled?: boolean; }; export function AiProviderModelsLists({ orgId, allowItems, onAllowChange, blockItems, onBlockChange, catalogModels, disabled }: AiProviderModelsListsProps) { const t = useTranslations(); const allowExcludeKeys = useMemo( () => new Set(blockItems.map((item) => item.modelKey)), [blockItems] ); const blockExcludeKeys = useMemo( () => new Set(allowItems.map((item) => item.modelKey)), [allowItems] ); return (

{t("aiProviderModelsAllowDescription")}

{t("aiProviderModelsBlockDescription")}

); }