This commit is contained in:
2026-02-10 17:11:24 +07:00
parent 87bddca6c3
commit 9851c311b3
60 changed files with 1127 additions and 89 deletions

View File

@@ -0,0 +1,20 @@
'use client';
import { useEffect } from "react";
import { useLayout } from "../../components/layout/LayoutContext";
export default function SlugLayoutSetter({
layout,
children,
}: {
layout: "main" | "static";
children: React.ReactNode;
}) {
const { setLayout } = useLayout();
useEffect(() => {
setLayout(layout);
}, [layout, setLayout]);
return <>{children}</>;
}