Added simple sidebar
This commit is contained in:
16
src/app/(admin)/dashboard/page.tsx
Normal file
16
src/app/(admin)/dashboard/page.tsx
Normal file
@@ -0,0 +1,16 @@
|
||||
import { getSession } from "@/lib/auth/session"
|
||||
|
||||
export default async function Dashboard() {
|
||||
const { session, redirect } = await getSession()
|
||||
|
||||
if (!session) {
|
||||
redirect("/sign-in")
|
||||
}
|
||||
|
||||
return (
|
||||
<div className="p-6">
|
||||
<h1 className="text-2xl font-bold text-gray-900 mb-4">Dashboard</h1>
|
||||
<p className="text-gray-600">Welcome to your dashboard! Use the sidebar to navigate to different sections.</p>
|
||||
</div>
|
||||
)
|
||||
}
|
||||
Reference in New Issue
Block a user