mirror of
https://github.com/fosrl/pangolin.git
synced 2026-09-23 18:58:51 +02:00
Pass 3 - add commands, remove run, formatting, mobile view
This commit is contained in:
@@ -2,19 +2,21 @@
|
||||
|
||||
import CopyTextBox from "@app/components/CopyTextBox";
|
||||
import type { AiConfigBlock } from "@app/lib/aiClientConfig";
|
||||
import { cn } from "@app/lib/cn";
|
||||
|
||||
export function AiConfigCodeBlock({ block }: { block: AiConfigBlock }) {
|
||||
return (
|
||||
<div className="space-y-1.5">
|
||||
<div className="min-w-0 space-y-1.5">
|
||||
<p className="font-mono text-xs text-muted-foreground">
|
||||
{block.label}
|
||||
</p>
|
||||
<div
|
||||
className={
|
||||
className={cn(
|
||||
"min-w-0",
|
||||
block.kind === "steps"
|
||||
? "[&_pre]:text-sm"
|
||||
: "[&_pre]:text-xs [&_code]:font-mono"
|
||||
}
|
||||
)}
|
||||
>
|
||||
<CopyTextBox
|
||||
text={block.displayText}
|
||||
|
||||
Reference in New Issue
Block a user