summaryrefslogtreecommitdiff
path: root/apps/web/src/lib/guides/index.ts
blob: 9ea75631011cece7cc5503bbb46a84060964d651 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
import { GUIDE_REGISTRY } from "./registry";
import type { GuideDefinition } from "@/lib/guides/types";

export { GUIDE_REGISTRY, isGuideId } from "./registry";
export type { GuideDefinition, GuideId, GuideRenderProps } from "./registry";

export function getGuideById(guideId: string | null): GuideDefinition | null {
	if (!guideId) {
		return null;
	}

	return GUIDE_REGISTRY.find((guide) => guide.id === guideId) ?? null;
}