summaryrefslogtreecommitdiff
path: root/apps/web/src/guides/index.ts
diff options
context:
space:
mode:
Diffstat (limited to 'apps/web/src/guides/index.ts')
-rw-r--r--apps/web/src/guides/index.ts14
1 files changed, 14 insertions, 0 deletions
diff --git a/apps/web/src/guides/index.ts b/apps/web/src/guides/index.ts
new file mode 100644
index 00000000..a01d3d24
--- /dev/null
+++ b/apps/web/src/guides/index.ts
@@ -0,0 +1,14 @@
+import { GUIDE_REGISTRY } from "./registry";
+import type { GuideDefinition } from "@/guides/types";
+
+export { GUIDE_REGISTRY, isGuideId } from "./registry";
+export type { GuideDefinition, GuideId, GuideRenderProps } from "./registry";
+export { getGuidePreviewOverlaySource } from "./preview-overlay";
+
+export function getGuideById(guideId: string | null): GuideDefinition | null {
+ if (!guideId) {
+ return null;
+ }
+
+ return GUIDE_REGISTRY.find((guide) => guide.id === guideId) ?? null;
+}