16 lines
384 B
TypeScript
16 lines
384 B
TypeScript
import { redirect } from "next/navigation";
|
|
import { getCurrentUser } from "@/lib/auth";
|
|
import ImportCSVPage from "./page-csv";
|
|
|
|
export const metadata = {
|
|
title: "Import Workouts",
|
|
description: "Import workouts from CSV",
|
|
};
|
|
|
|
export default async function ImportPage() {
|
|
const user = await getCurrentUser();
|
|
if (!user) redirect("/auth/login");
|
|
|
|
return <ImportCSVPage />;
|
|
}
|