27 lines
731 B
TypeScript
27 lines
731 B
TypeScript
import { redirect } from "next/navigation";
|
|
import { getCurrentUser } from "@/lib/auth";
|
|
import ExercisesClient from "@/components/exercises/ExercisesClient";
|
|
|
|
export default async function ExercisesPage() {
|
|
const user = await getCurrentUser();
|
|
|
|
if (!user) {
|
|
redirect("/auth/login");
|
|
}
|
|
|
|
return (
|
|
<div className="min-h-screen bg-[#0A0A0A]">
|
|
<div className="border-b border-zinc-800 px-4 py-4 sm:px-6">
|
|
<div className="max-w-7xl mx-auto">
|
|
<h1 className="text-2xl font-bold text-white">Exercises</h1>
|
|
<p className="text-zinc-500 text-sm mt-1">
|
|
Browse and manage your exercise library
|
|
</p>
|
|
</div>
|
|
</div>
|
|
|
|
<ExercisesClient />
|
|
</div>
|
|
);
|
|
}
|