Files
community-rule/lib/create/isCustomMethodCardId.ts
T
2026-05-08 20:32:24 -06:00

14 lines
514 B
TypeScript

import type { CreateFlowState } from "../../app/(app)/create/types";
/**
* True when `customMethodCardMetaById` has an entry for this id: wizard-finalized
* custom UUIDs, duplicate prefab clones, and **preset display overrides** after the
* user saves title/description in Customize mode (see {@link mergePresetMethodsWithCustom}).
*/
export function isCustomMethodCardId(
methodId: string,
customMeta: CreateFlowState["customMethodCardMetaById"],
): boolean {
return Boolean(customMeta?.[methodId]);
}