enzostvs HF Staff commited on
Commit
53f4b26
·
1 Parent(s): 69eeb36

not logged comp

Browse files
components/not-logged/not-logged.tsx ADDED
@@ -0,0 +1,26 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ "use client";
2
+
3
+ import { useUser } from "@/hooks/useUser";
4
+ import { Button } from "@/components/ui/button";
5
+
6
+ export const NotLogged = () => {
7
+ const { openLoginWindow } = useUser();
8
+ return (
9
+ <section className="max-w-[86rem] py-12 px-4 mx-auto">
10
+ <div className="mt-8 text-center max-w-xl mx-auto">
11
+ <div className="space-y-4 mb-8 text-center mx-auto">
12
+ <h2 className="text-4xl font-bold text-white">
13
+ Oops! You must be logged to continue.
14
+ </h2>
15
+ <p className="text-muted-foreground text-lg mt-1">
16
+ Unfortunately you cannot access DeepSite without being logged
17
+ through your Hugging Face account.
18
+ </p>
19
+ </div>
20
+ <Button size="lg" variant="default" onClick={openLoginWindow}>
21
+ Log In to Continue
22
+ </Button>
23
+ </div>
24
+ </section>
25
+ );
26
+ };