import { FC } from "react"; export const Flow: FC<{ children: any; PassProp: any; flow: { text: string; popover: any; icon: any }[]; props?: any; active?: string | (() => string); }> = ({ PassProp, children, flow, props, active }) => { const active_str = typeof active === "function" ? active() : active; const active_idx = flow.findIndex(e=> e.text === active_str) return (