From 9f8ccdb24f999e2e769800eb94acdd927eba4f7a Mon Sep 17 00:00:00 2001 From: arsam Date: Fri, 18 Sep 2026 23:25:40 +0330 Subject: [PATCH] Import source: app/src/pages/shared Import the existing local project snapshot. This commit organizes existing files; it does not represent newly developed functionality. --- app/src/pages/shared.jsx | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 app/src/pages/shared.jsx diff --git a/app/src/pages/shared.jsx b/app/src/pages/shared.jsx new file mode 100644 index 0000000..3627b81 --- /dev/null +++ b/app/src/pages/shared.jsx @@ -0,0 +1,32 @@ +import { TeknavData } from '../../teknav-data.js'; + +export function authorProfilePath(author) { + const username = author.username || TeknavData.authors.find(a => a.slug === author.slug)?.username; + return username ? `/profile/@${username}` : `/author/${author.slug}`; +} + +export function LegalPage({ title, subtitle, children }) { + return ( +
+
+
+

{title}

+ {subtitle &&

{subtitle}

} +
+
+
+ {children} +
+
+
+ ); +} + +export function LegalSection({ title, children }) { + return ( +
+

{title}

+ {children} +
+ ); +}