@@ -79,26 +78,6 @@ export function InvitePerson() {
- {typeof navigator !== "undefined" && "share" in navigator && (
-
- )}
-
- WhatsApp
-
-
- Facebook
-
diff --git a/services/frontend/src/components/PackageCards.tsx b/services/frontend/src/components/PackageCards.tsx
index 34ce334..bdea588 100644
--- a/services/frontend/src/components/PackageCards.tsx
+++ b/services/frontend/src/components/PackageCards.tsx
@@ -5,22 +5,11 @@ import { useRouter } from "next/navigation";
import { useEffect, useState } from "react";
import { api, errorText } from "@/lib/api";
+import { contents } from "@/lib/packageContents";
import type { Package, PayMethod, PublicConfig } from "@/lib/types";
export const huf = (n: number) => `${n.toLocaleString("hu-HU")} Ft`;
-/** What a package contains, as short lines. */
-export function contents(p: Package): string[] {
- const lines: string[] = [];
- if (p.natal) lines.push(`${p.natal} részletes képletelemzés`);
- if (p.synastry) lines.push(`${p.synastry} kapcsolati elemzés`);
- if (p.forecast) lines.push(`${p.forecast} éves előrejelzés`);
- if (p.persons) lines.push(`${p.persons} személy felvétele`);
- if (p.questions) lines.push(`${p.questions} kérdés az elemzéseidről`);
- if (p.tarot) lines.push(`${p.tarot} kártyajóslás`);
- return lines;
-}
-
/**
* Package cards with a buy button. Bigger packages show what they save and
* how little more they cost than the previous one. With Stripe the button
diff --git a/services/frontend/src/lib/packageContents.ts b/services/frontend/src/lib/packageContents.ts
new file mode 100644
index 0000000..d38fb7d
--- /dev/null
+++ b/services/frontend/src/lib/packageContents.ts
@@ -0,0 +1,13 @@
+import type { Package } from "./types";
+
+/** What a package contains, as short lines. */
+export function contents(p: Package): string[] {
+ const lines: string[] = [];
+ if (p.natal) lines.push(`${p.natal} részletes képletelemzés`);
+ if (p.synastry) lines.push(`${p.synastry} kapcsolati elemzés`);
+ if (p.forecast) lines.push(`${p.forecast} éves előrejelzés`);
+ if (p.persons) lines.push(`${p.persons} személy felvétele`);
+ if (p.questions) lines.push(`${p.questions} kérdés az elemzéseidről`);
+ if (p.tarot) lines.push(`${p.tarot} kártyajóslás`);
+ return lines;
+}
diff --git a/services/frontend/src/lib/types.ts b/services/frontend/src/lib/types.ts
index e4b326a..8b5cfa1 100644
--- a/services/frontend/src/lib/types.ts
+++ b/services/frontend/src/lib/types.ts
@@ -484,6 +484,8 @@ export type InvitationStatus = "pending" | "accepted" | "expired" | "revoked";
/** What an invitation link shows before login. */
export interface InvitationLanding {
+ /** The package that comes with it (only admins attach one). */
+ gift: Package | null;
inviter_name: string | null;
message: string | null;
status: InvitationStatus;