feat(create-turbo): create https://github.com/juliusmarminge/acme-corp
This commit is contained in:
26
apps/nextjs/src/app/(auth)/signout/page.tsx
Normal file
26
apps/nextjs/src/app/(auth)/signout/page.tsx
Normal file
@@ -0,0 +1,26 @@
|
||||
"use client";
|
||||
|
||||
import { useRouter } from "next/navigation";
|
||||
import { SignOutButton } from "@clerk/nextjs";
|
||||
|
||||
import { Button } from "@acme/ui/button";
|
||||
|
||||
export const runtime = "edge";
|
||||
|
||||
export default function AuthenticationPage() {
|
||||
const router = useRouter();
|
||||
|
||||
return (
|
||||
<div className="mx-auto flex w-full flex-col justify-center space-y-6 sm:w-[350px]">
|
||||
<div className="flex flex-col space-y-2 text-center">
|
||||
<h1 className="text-2xl font-semibold tracking-tight">Sign Out</h1>
|
||||
<p className="text-sm text-muted-foreground">
|
||||
Are you sure you want to sign out?
|
||||
</p>
|
||||
<SignOutButton signOutCallback={() => router.push("/?redirect=false")}>
|
||||
<Button>Confirm</Button>
|
||||
</SignOutButton>
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user