"use client" import { useParams } from "next/navigation"; import { useGetAIUserBaseInfo } from "@/hooks/aiUser"; import Image from "next/image"; // 按钮组件 interface MobileButtonProps { showIcon?: boolean; icon?: React.ReactNode | null; btnTxt?: string; showTxt?: boolean; size?: "Large" | "Medium" | "Small"; variant?: "Contrast" | "Basic" | "Ghost"; type?: "Primary" | "Secondary" | "Tertiary" | "Destructive" | "VIP"; state?: "Default" | "Disabled" | "Pressed"; onClick?: () => void; } function MobileButton({ showIcon = true, icon = null, btnTxt = "Button", showTxt = true, size = "Large", variant = "Basic", type = "Primary", state = "Default", onClick }: MobileButtonProps) { if (size === "Small" && variant === "Contrast" && type === "Tertiary" && state === "Default") { return ( ); } return ( ); } const SharePage = () => { const { userId } = useParams(); const { data: userInfo } = useGetAIUserBaseInfo({ aiId: userId ? Number(userId) : 0 }); const { homeImageUrl } = userInfo || {}; const handleChatClick = () => { // 跳转到应用或下载页面 window.open('https://crushlevel.com/download', '_blank'); }; return (
{userInfo?.nickname || 'Loading...'}
0 likes
Intro: {userInfo?.introduction || 'This is an AI character with unique personality and charm. Start chatting to discover more about them!'}