mirror of
https://github.com/SableClient/Sable.git
synced 2026-12-03 07:12:34 -08:00
18 lines
444 B
TypeScript
18 lines
444 B
TypeScript
import { ReactNode } from 'react';
|
|
import { UIAFlow } from '$types/matrix-sdk';
|
|
import { useSupportedUIAFlows } from '$hooks/useUIAFlows';
|
|
|
|
export function SupportedUIAFlowsLoader({
|
|
flows,
|
|
supportedStages,
|
|
children,
|
|
}: {
|
|
supportedStages: string[];
|
|
flows: UIAFlow[];
|
|
children: (supportedFlows: UIAFlow[]) => ReactNode;
|
|
}) {
|
|
const supportedFlows = useSupportedUIAFlows(flows, supportedStages);
|
|
|
|
return children(supportedFlows);
|
|
}
|