Add custom intervention modals
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
import type { CreateFlowState } from "../../app/(app)/create/types";
|
||||
|
||||
/**
|
||||
* User-authored method cards (UUID ids) register a meta row when finalized
|
||||
* from {@link CustomMethodCardWizard}. Preset rows from `methods[]` never
|
||||
* appear here — keeps edit surfaces from treating custom ids like presets.
|
||||
*/
|
||||
export function isCustomMethodCardId(
|
||||
methodId: string,
|
||||
customMeta: CreateFlowState["customMethodCardMetaById"],
|
||||
): boolean {
|
||||
return Boolean(customMeta?.[methodId]);
|
||||
}
|
||||
Reference in New Issue
Block a user