Files
Sable/src/app/components/SupportedUIAFlowsLoader.tsx
T

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);
}