({ depth, iconClasses, onClick, className, children }: ButtonProps)
| 220 | } |
| 221 | |
| 222 | function NodeButton({ depth, iconClasses, onClick, className, children }: ButtonProps) { |
| 223 | return ( |
| 224 | <button |
| 225 | className={classNames( |
| 226 | 'flex items-center gap-1.5 w-full pr-2 border-2 border-transparent text-faded py-0.5', |
| 227 | className, |
| 228 | )} |
| 229 | style={{ paddingLeft: `${6 + depth * NODE_PADDING_LEFT}px` }} |
| 230 | onClick={() => onClick?.()} |
| 231 | > |
| 232 | <div className={classNames('scale-120 shrink-0', iconClasses)}></div> |
| 233 | <div className="truncate w-full text-left">{children}</div> |
| 234 | </button> |
| 235 | ); |
| 236 | } |
| 237 | |
| 238 | type Node = FileNode | FolderNode; |
| 239 |
nothing calls this directly
no test coverage detected