blob: a01d3d242c9014da98e18297ec79b4d0f5ea9762 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
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;
}
|