aboutsummaryrefslogtreecommitdiffstats
path: root/src/pages/PrivacyPolicy.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/pages/PrivacyPolicy.js')
-rw-r--r--src/pages/PrivacyPolicy.js26
1 files changed, 23 insertions, 3 deletions
diff --git a/src/pages/PrivacyPolicy.js b/src/pages/PrivacyPolicy.js
index 27333d1..e8ad594 100644
--- a/src/pages/PrivacyPolicy.js
+++ b/src/pages/PrivacyPolicy.js
@@ -1,3 +1,23 @@
-export default function PrivacyPolicy() {
- return <h1>so private</h1>
-} \ No newline at end of file
+import React, { useContext } from 'react';
+import { AuthContext } from '../providers/AuthContext';
+import GridLayout from '../layouts/GridLayout';
+
+const PrivacyPolicy = () => {
+ const { user } = useContext(AuthContext);
+
+ return (
+ <>
+ {!user ? (
+ <h1>so private</h1>
+ ) : (
+ <GridLayout>
+ <>
+ so private
+ </>
+ </GridLayout>
+ )}
+ </>
+ );
+};
+
+export default PrivacyPolicy; \ No newline at end of file