deer-flow/frontend/src/app/layout.tsx
Lucien c5fd453c37
fix(artifacts): preserve account-scoped drafts across navigation (#6700)
* fix(artifacts): preserve account-scoped drafts across navigation

* docs(artifacts): keep draft lifecycle guidance within its budget

* fix(artifacts): retain drafts through unknown auth and isolate typing updates

* fix(artifacts): preserve drafts when visiting public showcases

* fix(artifacts): preserve edits after pending save
2026-10-13 15:44:20 +08:00

31 lines
833 B
TypeScript

import "@/styles/globals.css";
import { type Metadata } from "next";
import { ThemeProvider } from "@/components/theme-provider";
import { ArtifactDraftsProvider } from "@/core/artifacts/draft-context";
import { DEFAULT_LOCALE } from "@/core/i18n/locale";
export const metadata: Metadata = {
title: "DeerFlow",
description: "A LangChain-based framework for building super agents.",
};
export default function RootLayout({
children,
}: Readonly<{ children: React.ReactNode }>) {
return (
<html
lang={DEFAULT_LOCALE}
suppressContentEditableWarning
suppressHydrationWarning
>
<body>
<ThemeProvider attribute="class" enableSystem disableTransitionOnChange>
<ArtifactDraftsProvider>{children}</ArtifactDraftsProvider>
</ThemeProvider>
</body>
</html>
);
}