|
| 1 | +"use client"; |
| 2 | + |
| 3 | +import { Button } from "@/components/ui/button"; |
| 4 | +import { |
| 5 | + Dialog, |
| 6 | + DialogContent, |
| 7 | + DialogHeader, |
| 8 | + DialogTitle, |
| 9 | + DialogDescription, |
| 10 | + DialogFooter, |
| 11 | +} from "@/components/ui/dialog"; |
| 12 | +import { useState } from "react"; |
| 13 | +import { useAuth } from "@/components/auth/auth-provider"; |
| 14 | + |
| 15 | +export default function DisclaimerModal() { |
| 16 | + const { logout } = useAuth(); |
| 17 | + const [disclaimerAccepted, setDisclaimerAccepted] = useState(false); |
| 18 | + return ( |
| 19 | + <> |
| 20 | + {!disclaimerAccepted ? ( |
| 21 | + <Dialog open> |
| 22 | + <DialogContent |
| 23 | + className="max-w-lg mx-auto backdrop-blur-md p-6 rounded-lg" |
| 24 | + onInteractOutside={() => logout()} |
| 25 | + > |
| 26 | + <DialogHeader> |
| 27 | + <DialogTitle className="text-xl text-center font-bold"> |
| 28 | + Disclaimer from MetaState Foundation |
| 29 | + </DialogTitle> |
| 30 | + <DialogDescription asChild> |
| 31 | + <div className="flex flex-col gap-2"> |
| 32 | + <p className="font-bold">⚠️ Please note:</p> |
| 33 | + <p> |
| 34 | + Group Charter is a{" "} |
| 35 | + <b>functional prototype</b>, intended to |
| 36 | + showcase <b>interoperability</b> and |
| 37 | + core concepts of the W3DS ecosystem. |
| 38 | + </p> |
| 39 | + <p> |
| 40 | + <b> |
| 41 | + It is not a production-grade |
| 42 | + platform |
| 43 | + </b>{" "} |
| 44 | + and may lack full reliability, |
| 45 | + performance, and security guarantees. |
| 46 | + </p> |
| 47 | + <p> |
| 48 | + We <b>strongly recommend</b> that you |
| 49 | + avoid sharing{" "} |
| 50 | + <b>sensitive or private content</b>, and |
| 51 | + kindly ask for your understanding |
| 52 | + regarding any bugs, incomplete features, |
| 53 | + or unexpected behaviours. |
| 54 | + </p> |
| 55 | + <p> |
| 56 | + The app is still in development, so we |
| 57 | + kindly ask for your understanding |
| 58 | + regarding any potential issues. If you |
| 59 | + experience issues or have feedback, feel |
| 60 | + free to contact us at: |
| 61 | + </p> |
| 62 | + <a |
| 63 | + |
| 64 | + className="outline-none" |
| 65 | + > |
| 66 | + |
| 67 | + </a> |
| 68 | + </div> |
| 69 | + </DialogDescription> |
| 70 | + </DialogHeader> |
| 71 | + <DialogFooter> |
| 72 | + <Button |
| 73 | + type="button" |
| 74 | + onClick={() => { |
| 75 | + setDisclaimerAccepted(true); |
| 76 | + }} |
| 77 | + > |
| 78 | + I Understand |
| 79 | + </Button> |
| 80 | + </DialogFooter> |
| 81 | + </DialogContent> |
| 82 | + </Dialog> |
| 83 | + ) : ( |
| 84 | + <></> |
| 85 | + )} |
| 86 | + </> |
| 87 | + ); |
| 88 | +} |
0 commit comments