28 lines
1.1 KiB
TypeScript
28 lines
1.1 KiB
TypeScript
type PublicAuditStatusProps = {
|
|
status?: "pending" | "unavailable";
|
|
};
|
|
|
|
export function PublicAuditStatus({ status = "pending" }: PublicAuditStatusProps) {
|
|
const isUnavailable = status === "unavailable";
|
|
|
|
return (
|
|
<main className="flex min-h-dvh items-center justify-center bg-slate-50 px-6 py-12 text-slate-950">
|
|
<section className="w-full max-w-xl rounded-lg border border-slate-200 bg-white p-8 shadow-sm">
|
|
<p className="text-sm font-semibold uppercase tracking-normal text-slate-500">
|
|
Website-Audit
|
|
</p>
|
|
<h1 className="mt-3 text-2xl font-semibold tracking-normal text-slate-950">
|
|
{isUnavailable
|
|
? "Dieser Audit ist nicht verfügbar"
|
|
: "Dieser Audit ist noch nicht freigegeben"}
|
|
</h1>
|
|
<p className="mt-4 text-sm leading-6 text-slate-600">
|
|
{isUnavailable
|
|
? "Die angeforderte öffentliche Kurzfassung wurde entfernt oder existiert nicht."
|
|
: "Die öffentliche Kurzfassung wird erst nach manueller Prüfung angezeigt."}
|
|
</p>
|
|
</section>
|
|
</main>
|
|
);
|
|
}
|