还原原来的单行文本输入框

This commit is contained in:
2024-08-13 13:29:33 +08:00
parent 9b3dfbbee4
commit acf649beb2
3 changed files with 22 additions and 6 deletions
@@ -127,9 +127,26 @@ function NodeInfo({ nodeInfo }: { nodeInfo: NodeInfo }) {
}
// node generated by unknown loader, implement renderer by analyzing logged out metadata
// return (
// <p>
// 对不起, 未知文件类型. 无法打开当前的来源文件。
// </p>
// );
return (
<p>
, .
</p>
<div className="flex items-center my-2">
<span>{nodeInfo.text}</span>
<Button
onClick={() => copyToClipboard(nodeInfo.url!)}
size="icon"
variant="ghost"
className="h-12 w-12 shrink-0"
>
{isCopied ? (
<Check className="h-4 w-4" />
) : (
<Copy className="h-4 w-4" />
)}
</Button>
</div>
);
}