(props: { owner: Owner; showOwnerLabels: boolean; onClick: () => void })
| 592 | } |
| 593 | |
| 594 | function 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 | |
| 618 | function ToolkitSection(props: { |
| 619 | owner: Owner; |
nothing calls this directly
no test coverage detected