mirror of
https://github.com/spacedriveapp/spacedrive.git
synced 2026-02-20 07:37:26 -05:00
* 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
17 lines
462 B
TypeScript
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;
|
|
}
|