diff --git a/components/Layout.tsx b/components/Layout.tsx
new file mode 100644
index 00000000..5d002ba1
--- /dev/null
+++ b/components/Layout.tsx
@@ -0,0 +1,6 @@
+import { useContext } from "preact/hooks";
+import { createContext } from "preact";
+
+export const LayoutContext = createContext({ isPreview: false });
+
+export const useLayoutContext = () => useContext(LayoutContext);
diff --git a/sections/Gallery.tsx b/sections/Gallery.tsx
index 943586eb..2df82d5b 100644
--- a/sections/Gallery.tsx
+++ b/sections/Gallery.tsx
@@ -1,10 +1,11 @@
import { Section } from "deco/blocks/section.ts";
+import { LayoutContext } from "$store/components/Layout.tsx";
interface Props {
children: Section;
}
-function Gallery({ children: { Component, props } }: Props) {
+function Section({ children: { Component, props } }: Props) {
return (
<>