summaryrefslogtreecommitdiff
path: root/apps/web/src/guides/registry.tsx
blob: d1c6d652c6f67a2342460fb2675fc404964e2b18 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
import type { GuideDefinition } from "@/guides/types";
import { gridGuide } from "./definitions/grid";
// import { customGuide } from "./definitions/custom";
import {
	tiktokGuide,
	igReelsGuide,
	ytShortsGuide,
	spotlightGuide,
} from "./definitions/platforms";

export type { GuideDefinition, GuideRenderProps } from "@/guides/types";

export const GUIDE_REGISTRY = [
	gridGuide,
	tiktokGuide,
	igReelsGuide,
	ytShortsGuide,
	spotlightGuide,

	// todo: wire up custom guide fully, then uncomment this:
	// customGuide,
] as const satisfies readonly GuideDefinition[];

export type GuideId = (typeof GUIDE_REGISTRY)[number]["id"];

export function isGuideId(value: string): value is GuideId {
	return GUIDE_REGISTRY.some((guide) => guide.id === value);
}