Update batch test page
This commit is contained in:
@@ -70,7 +70,13 @@ export function EditorBackButton({
|
||||
);
|
||||
}
|
||||
|
||||
export function AssistantIdentity({ assistantId }: { assistantId: string | null }) {
|
||||
export function AssistantIdentity({
|
||||
assistantId,
|
||||
entityLabel = "助手",
|
||||
}: {
|
||||
assistantId: string | null;
|
||||
entityLabel?: string;
|
||||
}) {
|
||||
const [copied, setCopied] = useState(false);
|
||||
|
||||
async function copyId() {
|
||||
@@ -90,7 +96,9 @@ export function AssistantIdentity({ assistantId }: { assistantId: string | null
|
||||
type="button"
|
||||
onClick={() => void copyId()}
|
||||
className="ml-1 flex h-7 w-7 items-center justify-center rounded-full text-muted-soft transition-colors hover:bg-surface-strong hover:text-foreground"
|
||||
aria-label={copied ? "助手 ID 已复制" : "复制助手 ID"}
|
||||
aria-label={
|
||||
copied ? `${entityLabel} ID 已复制` : `复制${entityLabel} ID`
|
||||
}
|
||||
title={copied ? "已复制" : "复制 ID"}
|
||||
>
|
||||
{copied ? <Check size={13} /> : <Copy size={13} />}
|
||||
|
||||
Reference in New Issue
Block a user