"use client"; import React, { useEffect, useState } from "react"; import { Mask, Image,Button } from "antd-mobile"; import {getStreamerInfo} from "@/api/space"; import { useRouter } from "next/navigation"; import {remove} from "@/utils/storeInfo" export default function StreamerNavigator({ visible, mid, setVisible }) { const [streamerInfo,setStreamerInfo] = useState(null); const router = useRouter(); useEffect(()=>{ getStreamerInfo(mid).then(res=>{ setStreamerInfo(res); }) },[]) const handleCloseMask = ()=>{ remove("inviter") setVisible(false) } return (

{streamerInfo?.streamer_ext?.name}

{streamerInfo?.streamer_ext?.bio}

{ handleCloseMask(); router.push("/profile/"+streamerInfo?.mid); } : () => { handleCloseMask(); router.push("/space/person_space_introduce/"+streamerInfo?.mid); } } className="w-full p-2 mt-4 text-base rounded-full bg-[#FF669E] text-center" > {streamerInfo?.streamer_ext?.zones?.length === 0 ? "查看主页" : "查看空间"}
); }