summaryrefslogtreecommitdiff
path: root/apps/web/src/lib/guides/index.ts
blob: 007e6fda8a93f232ac3cf16b03a444d205d2c56f (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;
}