MCPcopy Create free account
hub / github.com/MagicCube/agentara / SandboxHeader

Function SandboxHeader

web/src/components/ai-elements/sandbox.tsx:41–61  ·  view source on GitHub ↗
({
  className,
  title,
  state,
  ...props
}: SandboxHeaderProps)

Source from the content-addressed store, hash-verified

39}
40
41export const SandboxHeader = ({
42 className,
43 title,
44 state,
45 ...props
46}: SandboxHeaderProps) => (
47 <CollapsibleTrigger
48 className={cn(
49 "flex w-full items-center justify-between gap-4 p-3",
50 className
51 )}
52 {...props}
53 >
54 <div className="flex items-center gap-2">
55 <Code className="size-4 text-muted-foreground" />
56 <span className="font-medium text-sm">{title}</span>
57 {getStatusBadge(state)}
58 </div>
59 <ChevronDownIcon className="size-4 text-muted-foreground transition-transform group-data-[state=open]:rotate-180" />
60 </CollapsibleTrigger>
61);
62
63export type SandboxContentProps = ComponentProps<typeof CollapsibleContent>;
64

Callers

nothing calls this directly

Calls 2

cnFunction · 0.90
getStatusBadgeFunction · 0.90

Tested by

no test coverage detected