(props: TextButtonProps)
| 451 | }; |
| 452 | |
| 453 | export function TextButton(props: TextButtonProps) { |
| 454 | return ( |
| 455 | <TextButtonRoot {...props}> |
| 456 | <Show when={props.icon}> |
| 457 | {props.completing ? ( |
| 458 | <TextButtonIcon> |
| 459 | <IconCheck /> |
| 460 | </TextButtonIcon> |
| 461 | ) : ( |
| 462 | <TextButtonIcon>{props.icon}</TextButtonIcon> |
| 463 | )} |
| 464 | </Show> |
| 465 | {props.children} |
| 466 | </TextButtonRoot> |
| 467 | ); |
| 468 | } |
| 469 | |
| 470 | const IconButtonRoot = styled("button", { |
| 471 | base: { |
nothing calls this directly
no outgoing calls
no test coverage detected