"use client"; import React, { useEffect, useState, useRef } from "react"; import { Image, Avatar, Divider, Dialog, Toast } from "antd-mobile"; import { useRouter, useSearchParams } from "next/navigation"; import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; import { faAngleLeft, faAngleRight, faCalendar, } from "@fortawesome/free-solid-svg-icons"; export default function Setting() { const router = useRouter(); const searchParams = useSearchParams(); const [streamerInfo, setStreamerInfo] = useState(null); const [showModal, setShowModal] = useState(false); useEffect(() => { let data = JSON.parse(decodeURIComponent(searchParams.get("data"))); setStreamerInfo(data); }, []); const handleShowVideo = () => { Dialog.className = "videoMask"; Dialog.show({ title: "是否确认退出空间?", content: (
空间设置
{streamerInfo?.name}