()
| 94 | } |
| 95 | |
| 96 | function SaveButton() { |
| 97 | const isLoggedIn = useIsLoggedIn(); |
| 98 | const hasProAccess = useHasProAccess(); |
| 99 | return isLoggedIn ? ( |
| 100 | hasProAccess ? ( |
| 101 | <CanSaveButton /> |
| 102 | ) : ( |
| 103 | <CannotSaveButton /> |
| 104 | ) |
| 105 | ) : ( |
| 106 | <LogInToSaveButton /> |
| 107 | ); |
| 108 | } |
| 109 | |
| 110 | function LogInToSaveButton() { |
| 111 | const navigate = useNavigate(); |
nothing calls this directly
no test coverage detected