20 lines
1.3 KiB
Plaintext
20 lines
1.3 KiB
Plaintext
{activeTab === "ocr" ? (
|
|
<div className="h-full overflow-y-auto px-4 py-3">
|
|
<div className="grid gap-4 lg:grid-cols-[1.3fr_minmax(0,1fr)]">
|
|
<div className="space-y-4">
|
|
<div className="rounded-lg border border-border/70 bg-white p-3 shadow-sm">
|
|
<p className="text-sm font-semibold text-foreground">引用记录</p>
|
|
<p className="text-xs text-muted-foreground">选中文本后点击“生成引用”,即可复制链接到导图或笔记。</p>
|
|
<div className="mt-2 rounded-lg border border-dashed border-border/70 bg-muted/40 p-2">
|
|
<p className="text-xs text-muted-foreground">当前选区</p>
|
|
<p className="mt-1 line-clamp-3 text-sm text-foreground">
|
|
{pendingQuote ? pendingQuote.text : "暂无选中的文本"}
|
|
</p>
|
|
</div>
|
|
</div>
|
|
<div className="space-y-3">
|
|
{quotesLoading ? (
|
|
<p className="text-sm text-muted-foreground">引用记录加载中...</p>
|
|
) : quotes.length === 0 ? (
|
|
<p className="text-sm text-muted-foreground">暂无引用。拖动选择 PDF 文本并点击“生成引用”。</p>
|
|
|