mirror of
https://github.com/bknd-io/bknd/
synced 2026-08-04 00:56:01 +00:00
public commit
This commit is contained in:
@@ -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]
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user