diff --git a/packages/app/src/app/privacy/page.tsx b/packages/app/src/app/privacy/page.tsx index c3f91c16..88d8ce3e 100644 --- a/packages/app/src/app/privacy/page.tsx +++ b/packages/app/src/app/privacy/page.tsx @@ -1,5 +1,36 @@ import { Heading } from "@/components/ui/heading"; +function PrivacyTextElement({ + title, + description, +}: { + title: string; + description: { type: string; content: string | string[] }[]; +}) { + return ( +
+

{title}

+ {description.map((descriptionData, index) => ( + <> + {descriptionData.type == "paragraph" && ( +

{descriptionData.content}

+ )} + {descriptionData.type == "list" && + typeof descriptionData.content == "object" && ( +
+ +
+ )} + + ))} +
+ ); +} + function PrivacyPage({}) { return (
@@ -7,7 +38,78 @@ function PrivacyPage({}) { title="Privacy Policies" description="Privacy policies for Code Racer" /> - {/* ADD PRIVACY POLICY */} + + + + + + + { + // TODO: + // - Add contact information + // - Improve UI, ( visuals are not my strongsuite :-) ) + // - Replace the text with the sites actuall privacy policy, i just used a generic one :I + }
); }