first commit
This commit is contained in:
16
app/views/page.tsx
Normal file
16
app/views/page.tsx
Normal file
@@ -0,0 +1,16 @@
|
||||
import { getServerSession } from "next-auth";
|
||||
import ViewManager from "../../components/ViewManager";
|
||||
import { authOptions } from "../../lib/auth";
|
||||
|
||||
export default async function ViewsPage() {
|
||||
const session = await getServerSession(authOptions);
|
||||
if (!session?.user) {
|
||||
return (
|
||||
<div className="rounded border border-dashed border-slate-300 bg-white p-8 text-center">
|
||||
<p className="text-slate-700">Bitte anmelden, um Ansichten zu verwalten.</p>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
||||
return <ViewManager />;
|
||||
}
|
||||
Reference in New Issue
Block a user