import { MailSettingsLayout } from "@/components/gmail/settings/mail-settings-layout"
import { SettingsAppShell } from "@/components/gmail/settings/settings-app-shell"
import { SuiteThemeShell } from "@/components/suite/suite-theme-shell"
import type { Metadata } from "next"
import { suitePageMetadata } from "@/lib/suite/page-metadata"

export const metadata: Metadata = suitePageMetadata({
  app: "mail",
  title: "Réglages",
})

export default function SettingsRootLayout({
  children,
}: {
  children: React.ReactNode
}) {
  return (
    <SuiteThemeShell>
      <SettingsAppShell>
        <MailSettingsLayout>{children}</MailSettingsLayout>
      </SettingsAppShell>
    </SuiteThemeShell>
  )
}
