21 lines
748 B
TypeScript
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't exist, or you aren't in it.
|
|
</p>
|
|
<Link to="/app" className={buttonVariants({ variant: 'outline' })}>
|
|
Back to your conversations
|
|
</Link>
|
|
</div>
|
|
);
|
|
}
|