import ContentTabs from "./ContentTabs";
import Head from "./Head";
import NotfoundDashboard from "./NotfoundDashboard";

function UserAccountPage({
  user,
  isTurnsDetails,
  setIsTurnsDetails,
  value,
  setValue,
  isOpenSide,
  setIsOpenSide,
}) {
  return (
    <div className="w-full md:w-[68%] lg:w-[72%]">
      {value === 5 ? (
        <NotfoundDashboard />
      ) : (
        <>
          <Head user={user} />
          <ContentTabs
            user={user}
            value={value}
            setValue={setValue}
            isOpenSide={isOpenSide}
            setIsOpenSide={setIsOpenSide}
            isTurnsDetails={isTurnsDetails}
            setIsTurnsDetails={setIsTurnsDetails}
          />
        </>
      )}
    </div>
  );
}

export default UserAccountPage;
