2023-04-08 08:16:46 +00:00
|
|
|
import Link from "next/link";
|
|
|
|
|
|
|
|
// layouts
|
|
|
|
import DefaultLayout from "layouts/default-layout";
|
|
|
|
// ui
|
|
|
|
import { PrimaryButton, SecondaryButton } from "components/ui";
|
|
|
|
|
2023-05-29 10:08:35 +00:00
|
|
|
export const NotAWorkspaceMember = () => (
|
|
|
|
<DefaultLayout>
|
|
|
|
<div className="grid h-full place-items-center p-4">
|
|
|
|
<div className="space-y-8 text-center">
|
|
|
|
<div className="space-y-2">
|
|
|
|
<h3 className="text-lg font-semibold">Not Authorized!</h3>
|
2023-07-10 07:17:00 +00:00
|
|
|
<p className="mx-auto w-1/2 text-sm text-custom-text-200">
|
2023-05-29 10:08:35 +00:00
|
|
|
You{"'"}re not a member of this workspace. Please contact the workspace admin to get an
|
|
|
|
invitation or check your pending invitations.
|
|
|
|
</p>
|
|
|
|
</div>
|
|
|
|
<div className="flex items-center justify-center gap-2">
|
|
|
|
<Link href="/invitations">
|
|
|
|
<a>
|
|
|
|
<SecondaryButton>Check pending invites</SecondaryButton>
|
|
|
|
</a>
|
|
|
|
</Link>
|
|
|
|
<Link href="/create-workspace">
|
|
|
|
<a>
|
|
|
|
<PrimaryButton>Create new workspace</PrimaryButton>
|
|
|
|
</a>
|
|
|
|
</Link>
|
2023-04-08 08:16:46 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
2023-05-29 10:08:35 +00:00
|
|
|
</div>
|
|
|
|
</DefaultLayout>
|
|
|
|
);
|