"use client"; import { useEffect, useState } from "react"; // Tabs import Turns from "./tabs/turns"; import DetailUser from "./tabs/detailUser"; import Comments from "./tabs/comments"; import Messages from "./tabs/messages"; import Tabs from "@/app/component/Tabs"; import Transactions from "./tabs/transactions"; import IsTurnsDetails from "./tabs/turns/isTurnsDetails"; import ArrowRightD from "@/components/icons/ArrowRightD"; import { Button } from "@mui/material"; import NotfoundDashboard from "./NotfoundDashboard"; import DownloadD from "@/components/icons/DownloadD"; const listTab = [ "حساب کاربری", "نوبت های من", "تراکنش های من", "نظرات من", "پیام ها", ]; function ContentTabs({ user, value, isTurnsDetails, setIsTurnsDetails, setValue, isOpenSide, setIsOpenSide, }) { const [loading, setLoading] = useState(true); const handleChange = (event, newValue) => setValue(newValue); useEffect(() => { setTimeout(() => { setLoading(false); }, 2000); }, []); const components = [ , , , , , , ]; return (
{value === 1 && isTurnsDetails ? ( ) : undefined}
{isTurnsDetails ? ( ) : ( <>
{components[value]}
)}
); } export default ContentTabs;