MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / AddToolkitCard

Function AddToolkitCard

packages/plugins/toolkits/src/page.tsx:594–616  ·  view source on GitHub ↗
(props: { owner: Owner; showOwnerLabels: boolean; onClick: () => void })

Source from the content-addressed store, hash-verified

592}
593
594function AddToolkitCard(props: { owner: Owner; showOwnerLabels: boolean; onClick: () => void }) {
595 const scopeLabel = addToolkitScopeLabel(props.owner, props.showOwnerLabels);
596 return (
597 <Button
598 type="button"
599 variant="ghost"
600 onClick={props.onClick}
601 aria-label={scopeLabel ? `Add ${scopeLabel} toolkit` : "Add toolkit"}
602 className="group flex h-auto min-h-36 min-w-0 self-start items-center justify-center rounded-md border border-dashed border-border/75 bg-card/40 p-0 text-muted-foreground transition-[border-color,background-color,box-shadow,color] hover:border-foreground/25 hover:bg-muted/20 hover:text-foreground hover:shadow-sm focus-visible:ring-[3px] focus-visible:ring-ring/30 focus-visible:outline-none"
603 style={toolkitCardStyle}
604 >
605 <span
606 className={cn(
607 "flex size-12 items-center justify-center rounded-md border transition-[border-color,background-color,color,transform]",
608 neutralToolkitIconClass,
609 "group-hover:scale-105",
610 )}
611 >
612 <PlusIcon className="size-6" />
613 </span>
614 </Button>
615 );
616}
617
618function ToolkitSection(props: {
619 owner: Owner;

Callers

nothing calls this directly

Calls 2

cnFunction · 0.90
addToolkitScopeLabelFunction · 0.85

Tested by

no test coverage detected