Some checks failed
Build & Deploy / 🔍 Prepare (push) Failing after 21s
Build & Deploy / 🧪 QA (push) Has been skipped
Build & Deploy / 🏗️ Build (push) Has been skipped
Build & Deploy / 🚀 Deploy (push) Has been skipped
Build & Deploy / 🧪 Post-Deploy Verification (push) Has been skipped
Build & Deploy / 🔔 Notify (push) Successful in 1s
21 lines
588 B
TypeScript
21 lines
588 B
TypeScript
import configPromise from "@payload-config";
|
|
import "@payloadcms/next/css";
|
|
import { RootLayout } from "@payloadcms/next/layouts";
|
|
import React from "react";
|
|
|
|
import { handleServerFunctions } from "./actions";
|
|
// @ts-expect-error - Payload generates this file during the build process
|
|
import { importMap } from "./admin/importMap";
|
|
|
|
export default function Layout({ children }: { children: React.ReactNode }) {
|
|
return (
|
|
<RootLayout
|
|
config={configPromise}
|
|
importMap={importMap}
|
|
serverFunction={handleServerFunctions}
|
|
>
|
|
{children}
|
|
</RootLayout>
|
|
);
|
|
}
|