mirror of
https://github.com/formbricks/formbricks.git
synced 2026-04-26 07:28:49 -05:00
c6aabc77b4
* New cleaner signup/login screen
20 lines
628 B
TypeScript
20 lines
628 B
TypeScript
import { getServerSession } from "next-auth";
|
|
import { redirect } from "next/navigation";
|
|
import { PosthogClientWrapper } from "../PosthogClientWrapper";
|
|
|
|
export default async function AuthLayout({ children }: { children: React.ReactNode }) {
|
|
const session = await getServerSession();
|
|
if (session) {
|
|
redirect(`/`);
|
|
}
|
|
return (
|
|
<PosthogClientWrapper>
|
|
<div className="min-h-screen bg-slate-50">
|
|
<div className="isolate bg-white">
|
|
<div className="bg-gradient-radial flex min-h-screen from-slate-200 to-slate-50">{children}</div>
|
|
</div>
|
|
</div>
|
|
</PosthogClientWrapper>
|
|
);
|
|
}
|