import Layout from "../layout";

function DashboardPage({
  user,
  isTurnsDetails,
  setIsTurnsDetails,
  children,
  value,
  setValue,
  isOpenSide,
  setIsOpenSide,
}) {
  return (
    <Layout
      user={user}
      value={value}
      title="داشبورد"
      name="dashboard"
      isSidebar={true}
      setValue={setValue}
      disableFooter={true}
      isOpenSide={isOpenSide}
      setIsOpenSide={setIsOpenSide}
      isTurnsDetails={isTurnsDetails}
      setIsTurnsDetails={setIsTurnsDetails}
    >
      {children}
    </Layout>
  );
}

export default DashboardPage;
