import { DataTable } from "./data-table"; import { getSongsWithTitles } from "@/lib/api"; import { getAuth } from "@/auth/queries/getauth"; import { z } from "zod"; import { columns } from "./colums"; const userSchema = z.object({ UserId: z.number(), }); const ChunithmScorePlaylog = async () => { const { user } = await getAuth(); const TypedUser = userSchema.safeParse(user); if (!TypedUser.success) { return (

Failed to load user data

); } const songs = await getSongsWithTitles(TypedUser.data.UserId); return ; }; export default ChunithmScorePlaylog;