Files
electro4ort/apps/web/src/components/realm-missing.tsx
T
olehhapuk 98b2e0ce4b
CI / Lint, types, build, tests (push) Canceled after 0s
CI / Docker images build (push) Canceled after 0s
update
2026-12-03 10:53:09 +02:00

21 lines
748 B
TypeScript

import { Link } from '@tanstack/react-router';
import { buttonVariants } from '@repo/ui/components/button';
/**
* Shown for a realm that doesn't exist or that the user isn't in. Also where
* someone lands when they are removed from a realm they have open.
*/
export function RealmMissing() {
return (
<div className="flex flex-1 flex-col items-center justify-center gap-3 p-6 text-center">
<h1 className="font-heading text-xl font-semibold">Realm not found</h1>
<p className="max-w-sm text-sm text-muted-foreground">
It doesn&apos;t exist, or you aren&apos;t in it.
</p>
<Link to="/app" className={buttonVariants({ variant: 'outline' })}>
Back to your conversations
</Link>
</div>
);
}