mirror of
https://github.com/hanzo-apps/dataroom.git
synced 2026-10-30 14:47:36 +00:00
108 files: README, marketing copy, page titles, meta tags, footer text, email templates, .env.example, UI strings. URLs swapped from papermark.com/papermark.io to dataroom.hanzo.ai. Internal identifiers left intact per repo policy: localStorage keys (papermark.email/papermark.name/last_papermark_login — changing them logs users out), type field names (papermarkUserId), internal helper symbols (PAPERMARK_HEADERS, PapermarkSparkle component, isPapermarkUrl helper), internal-only filenames. LLM.md retains 'Upstream: Papermark' attribution line. Per-locale .po translations regenerate from source on the next lingui-extract CI run. DB migrations untouched (append-only history; rewriting them breaks installed schemas). LICENSE stays AGPL-3.0.
53 lines
1.5 KiB
TypeScript
53 lines
1.5 KiB
TypeScript
"use client";
|
|
|
|
import Link from "next/link";
|
|
|
|
import { Button } from "@/components/ui/button";
|
|
|
|
export default function InvitationStatusContent({
|
|
status,
|
|
}: {
|
|
status: "expired" | "revoked";
|
|
}) {
|
|
const statusConfig = {
|
|
expired: {
|
|
title: "Invitation Expired",
|
|
message:
|
|
"This invitation has expired. It is no longer valid.\nAsk your admin to send you a new invitation.",
|
|
iconColor: "bg-amber-100",
|
|
iconTextColor: "text-amber-600",
|
|
},
|
|
revoked: {
|
|
title: "Invitation No Longer Available",
|
|
message: "It may have been used or revoked \nby the team administrator.",
|
|
iconColor: "bg-red-100",
|
|
iconTextColor: "text-red-600",
|
|
},
|
|
};
|
|
|
|
const config = statusConfig[status];
|
|
|
|
return (
|
|
<div className="flex flex-col items-center space-y-6">
|
|
<div className="w-full text-center">
|
|
<h3 className="text-2xl font-bold text-gray-800">{config.title}</h3>
|
|
<p className="mx-auto mt-2 max-w-xs whitespace-pre-line break-words text-sm text-gray-600">
|
|
{config.message}
|
|
</p>
|
|
</div>
|
|
<div className="w-full space-y-4">
|
|
<h4 className="text-center text-sm font-medium text-gray-800">
|
|
Create your own Hanzo Dataroom account
|
|
</h4>
|
|
<div className="space-y-3">
|
|
<Link href="/login" className="block w-full">
|
|
<Button className="w-full bg-gray-800 hover:bg-gray-900">
|
|
Register
|
|
</Button>
|
|
</Link>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
);
|
|
}
|