public commit

This commit is contained in:
dswbx
2024-11-16 12:01:47 +01:00
commit 90f80c4280
582 changed files with 49291 additions and 0 deletions

View File

@@ -0,0 +1,22 @@
import { useBknd } from "../client/BkndProvider";
/** @deprecated */
export function useFlows() {
const { app } = useBknd();
return {
flows: app.flows,
config: app.config.flows
};
}
/** @deprecated */
export function useFlow(name: string) {
const { app } = useBknd();
const flow = app.flows.find((f) => f.name === name);
return {
flow: flow!,
config: app.config.flows[name]
};
}