UNPKG

@npio/internals

Version:

A free visual website editor, powered with your own SolidJS components.

17 lines (14 loc) 483 B
import { getEventProject } from "../../request"; import { blueprintPaths } from "../page"; import { getSettings } from "../settings"; export const getBlueprintDefaults = async (id: string) => { const project = getEventProject(); const defaults = await ( await getSettings({ projectId: project.id }) ).blueprintDefaults.value; return defaults?.[id]; }; export const getBlueprintPath = async (id: string) => { const filePath = blueprintPaths[id]; return filePath; };