22 lines
584 B
TypeScript
22 lines
584 B
TypeScript
import {
|
|
getLatestTiktokVideos,
|
|
getLatestYoutubeVideos,
|
|
} from "@/lib/video/video-platforms";
|
|
import { LatestCard } from "./latest-card";
|
|
|
|
export const dynamic = "force-dynamic";
|
|
|
|
export default async function AdminUploadVideoPage() {
|
|
const [youtube, tiktok] = await Promise.all([
|
|
getLatestYoutubeVideos().catch(() => []),
|
|
getLatestTiktokVideos().catch(() => []),
|
|
]);
|
|
|
|
return (
|
|
<section className="grid gap-4 xl:grid-cols-2">
|
|
<LatestCard title="Latest YouTube videos" videos={youtube} />
|
|
<LatestCard title="Latest TikTok videos" videos={tiktok} />
|
|
</section>
|
|
);
|
|
}
|