import Layout from "../layout";

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

export default DashboardPage;
