Files
spacedrive/interface/components/AuthRequiredOverlay.tsx
Brendan Allan 4ede374a60 [ENG-1255] Feedback popover with new API (#1532)
* feedback popover with new api

* allow unauthed feedback

* add login information

* allow no auth

* fix hooks

* remove emoji on reset

* show cancel on left of login button
2023-10-13 08:08:07 +00:00

17 lines
462 B
TypeScript

import { auth } from '@sd/client';
import { Loader } from '@sd/ui';
import { LoginButton } from '~/components/LoginButton';
export function AuthRequiredOverlay() {
const authState = auth.useStateSnapshot();
if (authState.status !== 'loggedIn')
return (
<div className="absolute inset-0 z-50 flex items-center justify-center bg-app/75 backdrop-blur-sm">
{authState.status === 'loading' ? <Loader /> : <LoginButton />}
</div>
);
return null;
}