import ChatButton from './ChatButton'; import { fetchCharacter } from './service'; import { Chip } from '@/components/ui/chip'; import { Avatar, AvatarFallback, AvatarImage } from '@/components/ui/avatar'; import { IconButton } from '@/components/ui/button'; import Link from 'next/link'; export default async function Page({ params }: { params: Promise<{ id: string }> }) { const { id } = await params; const character = await fetchCharacter(id); return (
{/* header */}
{/* 内容区 */}
{character?.name?.slice(0, 2)}
{character?.name}
{character?.tags?.map((tag: any) => ( {tag.name} ))}
9.9k
Liked
123456
Hot
Introduction
{character?.description}
); }