({
className,
title,
state,
...props
}: SandboxHeaderProps)
| 39 | } |
| 40 | |
| 41 | export 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 | |
| 63 | export type SandboxContentProps = ComponentProps<typeof CollapsibleContent>; |
| 64 |
nothing calls this directly
no test coverage detected