Merge remote-tracking branch 'origin/feat_player'

This commit is contained in:
Kentai Radiquum 2024-07-29 21:39:37 +05:00
parent bb437fe7ca
commit 25e31a7799
Signed by: Radiquum
GPG key ID: 858E8EE696525EED
62 changed files with 1508 additions and 701 deletions

16
app/profile/[id]/page.tsx Normal file
View file

@ -0,0 +1,16 @@
import { ProfilePage } from "#/pages/Profile";
import { fetchDataViaGet } from "#/api/utils";
export async function generateMetadata({ params }) {
const id:string = params.id;
const profile: any = await fetchDataViaGet(`https://api.anixart.tv/profile/${id}`);
return {
title: "Профиль " + profile.profile.login,
};
}
export default async function Profile({ params }) {
const id: string = params.id;
return <ProfilePage id={id} />;
}